IIRC you're on v7.7.5, the general patch to stop this issue would be to convert the two memory tables in the database (_ONLINE and _TOPIC_VIEWS) to be a MyISAM type which will write the data to disk vs keeping it in memory which will give you the errors you're currently experiencing.