How to fix fatal error issue ?

Hi,

Since One Week now, User can not login to their store created in my mulsite. They have this message :
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/gratosho/public_html/wp-includes/wp-db.php on line 945

How to fix this please?