Ok, I found 2 bugs
Sometimes, the game spits out lua errors out of nowhere when just doing the average sonic.exe things, it breaks LUA_MAIN and LUA_OTHER, the only way I could replicate this is by using the magnet shield against a poor old crawla and then trowing a knife.
The other happened at the brak fight, after getting to the second phase the game freezes and it closes, in the log it says that the joystick recognition broke and it closes the game, I'm not sure what causes this but it happened 2 times!
I'll try to get a gif for the first one, in the meantime, could you try and see what causes these bugs?