MySQL & MariaDB error 4036 ER_SDI_GET_KEYS_INVALID_TABLESPACE
Same number, two different errors. 4036 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLTablespace '…' is invalid for SDI operations.
MariaDBCharacter disallowed in JSON in argument … to function '…' at position …