Jupyter Notebook Crashes with Error Code 5

Good Afternoon,
I am running some RAG AI tasks on Jupyter Notebook using AWS Cloud 9.
Every time I run some specific tasks, it lags and crashes the notebook as well as the tree with Error Code 5. Could it be that large outputs in the cells make it crash? Or what could be causing this issue?

Any help/guidance is highly appreciated.