MySQL Error 4027 – ER_ROLE_GRANTED_TO_ITSELF

MySQL Error Message

User account %s is directly or indirectly granted to the
role %s. The GRANT would create a loop

Reason for the Error

ER_ROLE_GRANTED_TO_ITSELF was
added in 8.0.23.