Upon investigation, it appears that in Mender-client 3, the buffer size used for parsing inventories is set to 64KB, effectively limiting the size of inventory data that can be sent to 64KB.
The following source code shows that the buffer created by bufio.NewScanner is 64KB:
When calling the Mender API’s Assign Attributes directly or using Mender-client 4, it was possible to send inventories larger than 64KB. This suggests that the 64KB restriction applies only to Mender-client 3.
In our case, we needed to send inventories exceeding 64KB using Mender-client 3. We addressed this by patching the Mender-client to increase the allowable inventory size.