No doubt extreme hardship does help later in life in terms of having solid experienced frames of reference that make the current glass seem very full in comparison.
Fortunately, I don't think you actually have to go through major deprivation to get that frame of reference. I don't think it is a set point issue as much as an issue of having some perspective and controlling your emotional state.
The usual corporate job is not in fact Hell. But it hits us in all the tender points that David Rock points out in "Your Brain at Work" - Status, Certainty, Autonomy, Relatedness, Fairness. The most damaging thing about it, by far, is my reaction to it.
I can get my undies in a bunch over violations of the above, or I can calm down, accept that it is what it is, while looking forward to finding some place that is better.
This post hit a chord with me, and I am curious as to what actions you took to change it. Did you simply go somewhere different, or are you doing something different?
Here is an interesting blog post about a guy who did a resume experiment between two positions which he argues are by experience identical, but occupy different "social status" positions in tech: A software engineer and a data manager.
The author concludes that positions that are labeled as code-monkey-like are low status, while positions that are labeled as managerial are high status. Even if they are "essentially" doing the same sort of work.
Not sure about this methodology, but it's food for thought.