Mine was hacked and was sending out millions of emails so my host suspended the account.
I don’t know if it was hacked in the same way as yours, but I fixed mine by deleting all users and comments and changing the password.
You could back up the parts of your database with posts in, and then reinstall and then put back the original database files?