Summary
This is a follow-up to #34342 (comment). This change adds -rpcmaxresponsesize to cap the total response size in bitcoin-cli.
Currently, the MAX_SIZE is uint64_t MAX_SIZE = 0x02000000 or 32 MB. There is a usecase for the user to lower this amount. The user can also set -rpcmaxresponsesize to set the size to be unbounded.