Have you changed the DB user or password or any other changes related to DB ?
How to get the OTCS Token for a user (by impersonation) using REST API in SSO Enabled ENV?