From ChatGPT - without warranty:
That specific error usually means InnoDB’s internal stats tables in the mysql system database are damaged. You must be careful here, because a wrong command can cause data loss. I’ll outline the usual options from least to most destructive, and you can choose...