MySQL & MariaDB error 4094 ER_OPERATION_NOT_ALLOWED_WHILE_PRIMARY_CHANGE_IS_RUNNING
Same number, two different errors. 4094 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLAll queries have been blocked while function 'group_replication_set_as_primary()' is executing. Please refer timeout parameter of function 'group_replication_set_as_primary()'.