MySQL & MariaDB error 4045 ER_INSTALL_PLUGIN_CONFLICT_CLIENT
Same number, two different errors. 4045 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLCannot install the … plugin when the … plugin is installed.
MariaDBJSON path should end with an array identifier in argument … to function '…'