Is it possible that you tried to open the hat menu on the floating fire platform? It is a known bug that the moving platform interacts with the physics engine in a weird way when opening the hat menu while standing on it. This causes you to shoot up about 4 million pixels and causes the camera to lose track which in turn makes the game unplayable until you restart.