If she hadn't become a pharmacist, my wife's back-up plan was to be a chemical engineer, which generally means she would be working for an oil company baby-sitting a machine in a refinery. Over the same period that pharmacists job quality declined, ExxonMobil went from the largest company in the US by market capitalization to the 12th biggest in the US, and from what I've read the quality of life of ChemE's has declined a lot in step with that. So this clearly isn't something where "STEM jobs will save you."
I remain puzzled as to why software engineering seems to be immune to this overproduction problem. Is it just that since software is still eating the world, we haven't found a natural limit to the demand for our kind of engineers yet? Is it that we are so unproductive and failure-prone that we guarantee ourselves full employment?