What device? I change the codes at the very end whenever I move to a new chapter, so it might have some incompatibilities. Have you tried loading a different save?
Yeah, I recognize this error, and I have an idea on how to prevent this, but for your case, you have to start over, my apologies. I also suggest making a new save for every chapter. Thanks!