MySQL & MariaDB error 4159 ER_CANT_SET_PERSISTED
Same number, two different errors. 4159 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLFailed to set persisted options.
MariaDBSpecified key part was too long; max key part length is … bytes