Pixracer shoots up in offboard

Hey guys, i have been trying to use pixracer with xavier nx and giving position commands. The controller works pretty well most of the times, but sometimes while switching to offboard it shoots up with maximum thrust.
Attaching the log file for refrence.

https://drive.google.com/file/d/13EvKhE7RnsG5U4XyIB22oWk_M4eFk82R/view?usp=sharing