Looks like your database has some invalid rows. I’d try to remove all rows with a NULL
project_id
column from the sentry_groupedmessage
table manually and try the migration again.
Also, I’d try upgrading to 20.10.1 instead of 20.6.0 as it has some fixes around upgrading from 9.1.2.