MySQL & MariaDB error 4086 ER_TOO_MANY_WINDOWS
Same number, two different errors. 4086 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLToo many windows in SELECT: …. Maximum allowed is …. Use named windows to share windows between window functions.
MariaDBSequence '….…' table structure is invalid (…)