Problem Statement
Introduce message size limit.
Proposed Solution
Check the size of the serialized record received from the client.
Additional Context
The server has a limit of 10MB per received message. We should introduce this on client side as well.