Corrective action: Change ActiveRecord::RecordInvalid to return 500, not 422 for SessionsController.
Incident
gitlab-com/gl-infra/production#16022 (comment 1467201089)
Proposal
To improve Observability/alerting, change ActiveRecord::RecordInvalid to return 500, not 422, but only in SessionsController.