"I think it would be a lot better and less frustrating to just stop this from happening all together. " I tried to fix it, quite some times, but it is (sadly) an engine bug which I couldn't find a good workaround to. So I ended up just killing the player when it happens, instead of making them stuck...
(^-^;)
I'm really glad you liked the game despite its flaws, and it makes me really happy that you especially pointed out enemy types! :)