Mobile App - Potential conflict between offline pending queries and log-in procedure

Hi
I currently use business plan of Retool, to work with my team on a mobile app, which is mainly based on the offline mode feature.

The issue :
The app mainly behaves well, but sometimes (barely once a month) pending queries fail, and then the whole queue seems to be corrupted.

Steps I've taken to troubleshoot:
Users tell me that they are sometimes asked for a “reconnection” even though they have been connected continuously for several days (without being asked to log in each time they open the retool app).

The pending queries that existed before the user was asked to log in again, were all failing queries.
Trying to leave them apart (by cancelling them in order to process the rest of queries), did not solve the issue, until the user reached the queries that were requested after this lattest “log in”.

thus, I wonder if there could be a conflict between remaining offline queries and the “log in” procedure.
When a user has pending queries, I fear that if he is asked to “log in” while he still has pending queries, then they might transform to failing queries and it might corrupt the whole queue of queries until the “new log in”.

Has anyone met such a strange behavior regarding pending offline queries ?

NOTA :
By the way, if I have some pending queries in the queue, it is impossible to log off “manually” from my app (the log off procedure freezes), whereas it is possible when there are no pending queries.

Additional info: mobile version v3.194

Thanks in advance.

Alex