process model fails to transition

We have a process model that fails with following error
java.lang.OutOfMemoryError at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java(Compiled Code)) at java.io.OutputStream.write(OutputStream.java(Compiled Code)) at …

at service wm.prt.dispatch:handleTransition

what could be the resolution