Users not able to login without clearing cookies

We are running an on-premise sentry setup and some of the members have complained that they are not able to login to sentry without clearing cookies. We are using google oauth

Sentry containers do restart randomly but the sessions are stored in database. We are not able to understand why it might happen.

Problem: Whenever developer logins using google auth, they are redirected back to the login page.
It is happening on firefox and chrome latest versions as far as we are aware.

Sentry Version: 8.22
Infra: Docker and Kubernetes

Similar issues in wider django ecosystem: