Unable to complete spectral processing due to error

slurmstepd: error: Detected 2 oom-kill event(s) in StepId=8099.0. Some of your processes may have been killed by the cgroup out-of-memory handler.
srun: error: xialab-dev: task 0: Out Of Memory

I got this error while processing LC-MS data. It would be helpful if anyone could tell me how to bypass this error. Please help me with this issue.