Hi Kaushik,
Could not think of any best option other than suggesting you analyze memory consumption using SAT tool, You can refer following blog to get info on SAT:
Next Generation ABAP Runtime Analysis (SAT) How to analyze memory consumption
Also see the jobs which are failing in prod are also failing in recently refreshed non-prod system too. This will give you idea if your prod RAM has any issues.
Check how much data failed jobs are dealing with.
Is this issue very often or once in a while?
Thanks,
Hardeep