Upgrade to version 5.37 - Database error
Run below command before running the upgrade
ALTER TABLE civicrm_group ROW_FORMAT=DYNAMIC;

Include the below config in mysql config file
innodb_large_prefix=true 
innodb_file_format=barracuda 
innodb_file_per_table=true