Yanfly's battle system, crash to desktop

Hello everyone! After trying a LOT of things I've come across an issue with Yanfly's battle system that has existed for quite a long time. 


Whenever I'm in battle and the battle ends, if I'm holding down a direction key, the game will crash to desktop. No error message.


At first I thought it would be script incompatibility, but I've removed every script I had but Yanfly's Core and Battle system, and the problem persists. 


Would anyone be able to help me out? Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-battle-system-crash-to-desktop.62799/