MySQL & MariaDB error 1568 ER_CANT_CHANGE_TX_CHARACTERISTICS
Same number, two different errors. 1568 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLTransaction characteristics can't be changed while a transaction is in progress
MariaDB… can't be set while a transaction is in progress
How the message changed between versions