MQTT disconnects with GPS

I am using BG-95M1 using QuecOpen SDK. I am using the module as a communication modem. I am using MQTT along with GPS. the MQTT stays connected and the GPS runs periodically every 5 minutes to update GPS coordinates. When the GPS starts running, the network stays connected but MQTT disconnects. and even if I try to connect to the MQTT cloud again, it successfully connects but automatically disconnects after 3 to 5 seconds.

I am using WWAN and GNSS priority switching but the problem is still persisting. what should I do and what am I missing?

before you sent data , pls query the network status with the below AT ,

if the query result is 3, pls begin to sent your data