While I am not the technical / programmer to the game... Imo it had to be Bonni's jumpscare crashing the game. Especially with how long it took me to notice it was indeed the case.