Having problem syncing with an email account

SuiteCRM version is 7.9.11 installed in a shared Linux server.

We are trying to sync SuiteCRM email module with an IMAP email account that has thousands of email messages.

After waited for a few minutes, the sync failed and this was the message shown:

We checked the system log and found this error message:

Can someone help?

It’s probably a MySQL timeout:

https://matomo.org/faq/troubleshooting/faq_183/

But check also in your php.ini to give a generous

memory_limit

and

max_execution_time