You should edit the php.ini file for this website, or even increase the limit globally - 40M isn't much. It depends on how optimised your site is, how much traffic your website gets, and what your server specifications are to what the value should be set at.
Since you're running WooCommerce, I would recommend a minimum initial value of 512M and then you can either increase or decrease from there depending if you have any issues.
You can just add the memory_limit directive with the value of 512M in the Enhance php.ini editor.