Player randomly dies

In my game, Geometry Lab, there are spots on the levels where the player just dies. There are no objects in the area, the player just randomly dies. Can someone overlook my code and see something I didn’t see?

It’s prolly cause you made it die when it collides with something on the side.

Well, it fixed it and broke something else, then when i reverted the fix, both bugs were gone lol.
(no idea what is going on)