Pixhawk drone fly away

Our drone uses orange cube plus. When it takes off in AUTO mode, it deviates from the correct route and seems to be flying in an uncontrolled state. Switching to LOITER mode does not stop the drone. Switching to RTL mode, the drone does not return to the take-off point, but flies in other directions until it hits a building. Has anyone encountered similar problems or has any possible analysis? Thank you

Vibrations are typically a cause of a fly-away, it seems like you have some loss of control too.
We would need to see a .bin log to understand anything further.