Hello @Arsalan Younus •
I understand that you've implemented a custom sign-in policy for Azure AD B2C, and the issue you're encountering occurs when a user leaves the sign-in page open for a couple of hours. When they try to sign-in, they are receiving a "Bad Request" error.
If the B2C session expires, you will encounter errors like this. This is a common scenario where the session has expired due to inactivity. To manage this, you need to review the session lifetime settings used in your B2C custom policy.
For Additional information refer this document: https://learn.microsoft.com/en-us/azure/active-directory-b2c/session-behavior?pivots=b2c-user-flow
If you have any queries do let us know. We are happy to assist you further.