Can you launch a DQL query specifying that you only want 4 MB (x amount of MB) of data back?
As far as I know there is no such way to set response size in DQL.
But You can either go with limiting amount of scanned data or create workflow that will use Your DQL, then truncate data (to 4MB), and then sent You it (via webhook or whatever).
Bests
Michael