As said abovbe the script was a workaround, not a solution.
and you can't put the same workaround to other errors, because it needs a different code for different errors.
So your only choice now is to apply the true solution: DELETE ALL SAVEFILES
And for later: whenevert you add (or remove) a script, you'll need to start new games as your savefiles have a high chance to become incompatible with the changed scripts