MySQL & MariaDB error 4027 ER_ROLE_GRANTED_TO_ITSELF
Same number, two different errors. 4027 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLUser account … is directly or indirectly granted to the role …. The GRANT would create a loop
MariaDBGot an error evaluating stored expression …