IMAP account recurrent errors

I just installed em Client on my gmail and University account (IMAP)
I’m getting continuously the error:
[IMAP] Exception when updating id-to-uid table:
SERVER ERROR: invalid result
I have it properly configured (server, TLS on 993, just like I had in Thunderbird and it was working)
As a result Inbox is not updated and sometimes recent mails (last days???!!!) disappear.
I tried to repair mailbox and/or delete and add again the account. It seems to work but when it is in the background (not visible) it fails again (maybe).
I don’t know what to try.
em Client looks great but after 1 full day of testing I cannot use it unless I correct these errors.
Gmail works OK (some issues with contacts but that another war)

I tried to repair mailbox and/or delete and add again the account. It seems to work but when it is in the background (not visible) it fails again (maybe). I don’t know what to try

[IMAP] Exception when updating id-to-uid table Sounds like some sort of either local database cache corruption or database problem.

So as repairing the IMAP account folders which clears the local cache didn’t fix it and removing and readding the account didn’t fix it, then I would next try “closing eM Client” and creating a new database to test if it’s a database issue.

To create a new database go to the following hidden database folder and “rename it” to eg: eM Client-Old. Then reopen eM Client and setup as new and see if that fixes the error.

(Hidden database folder Windows)
C:\Users%username%\AppData\Roaming\eM Client

(Hidden database folder Mac)
/Users/User Name/Library/Application Support/eM Client

If a new database still doesn’t fix it, then you might have some eg: server account mailbox message corruption with a message or messages.