In jupyterlab unfree RAM

dear sir/madam

i installed anaconda w/ jupyterlab

I ran a python prog. several times
and jupyterlab encountered errors

the 4th time the prog. ran jupyterlab closed automaticallly due to a memory problem

how can that be fixed?

thank you