Libreoffice Calc keeps crashing

Hi

I am currently working with a reasonably large spreadsheet and Calc crashes about 5 minutes after I first start the program and then randomnly after that.

I have heard that a quick fix is to change memory settings. I have gone through these steps to get to the options
to change the memory

Libreoffice - Advanced - Expert Configuration - org.openoffice.Office.Common - Cache - Graphics Manager

The Total Cache Size value is set to 400000000 and object Cache Size Value is set to 12600000. What do I set these values to, in order to make the program run more smoothly.

Any help will be greatly appreciated.