Hi,
I don’t know about your specific situation, but as the heap exhaustion seems to appear after a period of time (therefore not constrained to a specific node or set of nodes), I’d suggest it might be a case to simplify/optimize your workflow. Here’s an interesting read on that, and I would also suggest streaming execution (here’s a video explaining how to do it).
Kind regards,
Gui