How to Debug Out of Memory Errors in a Workflow Where Files are Moved via /tmp?

How can I dig deeper; or is there any possible workaround? I currently have zero clues on where to patch things as the OOM error is triggered at the top