UserActionException,ErrMsg Invalid Integer

SOLVED

Greetings,

We started having an issue with Sage CRM 2019. Whenever there is an IISRESET or a similar occurrence, we start getting the following error whenever we select a company, select an opportunity, etc: UserActionException,ErrMsg Invalid Integer. Somehow, the only way to fix it until the next occurrence is to refresh all metadata from the Administration panel.

We have conducted tests for one hour today and I'm attaching the partial eware logs to this post. Is there any way to know precisely what is causing the error so that we can try to debug it? The error message on the screen does not give much information. Thank you.

Partial logs:

/cfs-file/__key/communityserver-discussions-components-files/691/PARTIAL-20200319ewaresystem.log