Using pymavlink to send RC commands triggers an RC Failsafe

I am using pymavlink to send RC commands like throttle and yaw to a rover. While the command gets sent successfully, it triggers an RC Failsafe which also gets cleared immediately. However, this puts the vehicle in HOLD mode and I am having to change it to MANUAL through the code.

It would be great if anyone can give me suggestions about how to encounter this situation. I tried using the manual_control_send function instead of rc_channels_override. However both methods seem to be facing the same issue.