Hello again dude
It could be anything. It is hard to guess without looking at your code. Generally speaking, when you have code bugs it is better to show us the code you believe causes the problem so we can better understand where you go wrong, and perhaps some screenshots (if you notice that we don't understand what the problem is). Ideally, you could provide a sample project that reproduces the issue.
If I had to make a guess, judging by what you say, I would say the animation is guilty, or the code you have after the animation. I understand that you face the error where the game freezes and if you are on window mode you see at the top of the window "(Not responding)" and then the game crushes. Do I understand correctly?