Error connecting to database

Hello!

Occassionally, I get an "Error connecting to database" error on this site. I cannot update the server to PHP 7 because there are other Drupal sites being hosted there and they break if I do that.

Can you help?