MySQL & MariaDB error 4041 ER_GRP_RPL_VIEW_CHANGE_UUID_FAIL_GET_VARIABLE
Same number, two different errors. 4041 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLUnable to retrieve group_replication_view_change_uuid variable during server checks on replication operations.
MariaDBUnexpected end of JSON path in argument … to function '…'