pymysql.err.OperationalError: (1118, 'Row size too large. The maximum row size for the used table

I think, You have to trim the table. so first take a backup and test it.