Hi Qiaoqiao Sun,
I don't think that it's possible to limit the size of error queue in your case.
If your information is correct, it should be investigated and fixed. Do you have logs from your server nodes that contain these exceptions and out of memory? Could you share it with us?
set streaming on allow_overwrite off
1065 East Hillsdale Blvd, Suite 410Foster City, CA 94404