Really fun concept! For me it seemed the crash was related to pushing the "O" key, which I think is the ghost inventory? I crashed the game almost instantly by pushing "O" the first time, and then the game seemed to run fine after a reload while I avoided pushing "O". I was able to run around a do the puzzles. Then it crashed again as soon as I pressed "O".
The ghost design is really cute! Great job.