Fix IntegrityError: duplicate key value violates unique constraint

Fix sentry error: https://app.getsentry.com/prod-api/production/group/12013606/