Fix “Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB”

How to
One possible solution is to simply add this line before your SQL query to get around this issue.

SET SESSION innodb_strict_mode=OFF;

https://jira.mariadb.org/browse/MDEV-10364