MySQL & MariaDB error 4013 ER_CANT_USE_ANONYMOUS_TO_GTID_WITH_GTID_MODE_NOT_ON
Same number, two different errors. 4013 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLReplication cannot start… with ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS = LOCAL|<UUID> as this server uses @@GLOBAL.GTID_MODE <> ON.
MariaDBReferenced window specification '…' cannot contain window frame