I hope you are doing well,
why does our robot sometimes flips over and how can we prevent it?
Simulation robots, right? Can you open an issue on the GitHub https://github.com/RoboCupJuniorTC/rcj-soccer-sim/issues and specify what operating system, Webots version and version of the rcj-soccer-sim-code you are using. When does it happen?