Improving Complex Reasoning with Dynamic Prompt Corruption: A soft prompt Optimization Approach