Switching to Cube from Pixhawk4

i am new on a UAV-project thats using the Pixhawk4. So far they are having consistent problems with the controller, like irregular wrong sensor data, that can only be resolved by restarting. We think this could be a QC-issue. So I am asking myself if it would make sense to switch to the cube and use our existing PX4 code? Is it more reliable and maybe even a more accurate system? Im quite new to the topic and would be happy if someone could help me. Thank you!

Yes. CubeOrange is compatible with PX4. But note those exclusive parameters for different autopilots (eg: board type / etc). Always compare them but not import them.