Work is a fairly complex system and getting it to work towards our preferred success function or particular concept of happiness is herculean. I used to previously think that I need to adapt but I've dropped that concept. I go towards opportunities that are primed for what I consider fruitful and satisfactory work in an environment where I can see myself for 5+ years. Only if the particular work really needs me to do it, I do it else drop it. This may sound entitled but I feel its a way of taking care of yourself.
I used to go back to Steve Job's Stanford speech earlier as a cope but it's a good one to watch in your lows.
I was reflecting recently and wrote a piece about the dependencies we sign up for in any professional scenario that potentially hold us back - https://rnjai.substack.com/p/dependency-autopilot