WordPress ‘repairing database’ in a constant error loop?

You could try to repair all tables using the mysqlcheck command:

mysqlcheck --repair --databases <YOURDATABASE>

I would also try to disable any plugins and see if that solves the problem. Perhaps also switching to another theme.