Troubleshooting terminated Pluto worker

I have a notebook (cannot share, unfortunately) where the worker keeps terminating in the middle of an expensive computation. The REPL just tells me the worker terminated along with a Unhandled Task ERROR confirming the same.

I cannot reproduce the issue when including the notebook directly into the REPL, neither if Pluto is started with = false). By print-debugging, it clear that the worker does not always terminate on the same line every time. I can also reduce the risk of termination significantly by adding sleep(5) in the i middle of the code.

Is there anything else I can do to debug this? Can I somehow get better information from the worker when it terminates?