Error importing events during upgrade from 9.1.2 to 20.11 (and up)

This is the PR btw: https://github.com/getsentry/sentry/pull/23484

Waiting for confirmation from @sraisl before merging.