MySQL & MariaDB error 4039 ER_CANT_USE_SAME_UUID_AS_VIEW_CHANGE_UUID
Same number, two different errors. 4039 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLCHANGE REPLICATION SOURCE TO ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = <UUID> cannot be executed because the UUID value is equal to the group_replication_view_change_uuid.
MariaDBIncorrect escaping in JSON text in argument … to function '…' at position …