MySQL Error MY-011052 – ER_INNODB_IDX_COLUMN_CNT_DIFF

MySQL Error Message

Index %s of %s has %lu columns unique inside InnoDB, but
MySQL is asking statistics for %lu columns. Have you mixed data
dictionary from different installation?

Reason for the Error

ER_INNODB_IDX_COLUMN_CNT_DIFF was
added in 8.0.4.