MySQL & MariaDB error 4016 ER_SQL_REPLICA_SKIP_COUNTER_USED_WITH_GTID_MODE_ON
Same number, two different errors. 4016 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLThe value of sql_replica_skip_counter will only take effect for channels running with ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS <> OFF.
MariaDBWindow function is not allowed in window specification