Ooof. It can be a _real_ rough situation. Combined with a few other things, a year of it led me into a several-month stretch of suicidal ideation this past summer.
Things that helped me:
1. Books on stoicism and spirituality. The Subtle Art of Not Giving a Fuck was helpful to me in learning to be more "in the world but not of the world" -- maintaining a sense of my own values even if it was significantly harder to practice them in my current social context. Find a writer whose style resonates with you.
2. Find 1-3 other user-centered engineers and set up a regular Friday end-of-day chat over tea/beer/whatever so you do not feel so isolated and alienated and so you can support each other.
3. Build tooling to improve the developer experience of your fellow engineers.
4. Read about the legislative history for the laws. Write yourself some user stories for the underlying spirit of the laws.
If your company has a way you can do it without it being a betrayal of your PM, build relationships with people who work in Risk & Compliance and build trust with them so you can listen to their stressors.