Did you modify delivered Package or Process Chain? /CPMB/FAIL_SWITCH_TO_PLAN supposed to be a name of a Process Type in that chain, but I don't see such type in delivered PC.
Can you post screen shot of your Process chain with "Detail View On" and Dynamic Script from the Package?