Hi,
You can resolve this issue by increasing the size of buffer on server configuration utility and restart the AOS service. Second option is to check the sql statement that is causing this problem and optimizing it.
Please check below links to know further details:
(Getting the Internal size of the records message)
community.dynamics.com/.../getting-the-internal-size-of-the-records-message
Community Discussion Thread:
(The total, internal size of the records in your joined SELECT statement is 62594 bytes, but Microsoft Dynamics is by default performance-tuned not to exceed 49152 bytes.)