This error happens when the igallery table in the database is set to the InnoDB type, and when the row format is Not set to Dynamic. The row format should be set to Dynamic by default.
To fix this, please go to your webhosting control panel, then go to phpmyadmin, then choose the igallery table, then choose the operations tab, and set the row format to Dynamic.
Then do the upgrade again.