My guess is that your site is experiencing spurts of high activity that is causing your site to consume too much memory on the shared hosted server.

Copy that error message into a support ticket with your host and see what their response is.

Doubt it is an issue with UBB.