There is a huge amount of age discrimination. If you are over 40 especially in most STEM fields, you may accounting especially. Most of the 'auditors' at the Big 4 look like they are just out of school (college).
For a full time middle class white collar job that provides health insurance,Employers want people under 40, white and have no gaps in employment.
Yup, am mid-40s and already tech employment is a crapshoot in a lot of ways. Not that the jobs are worth working at other than the pay being good. The expectations have gone through the roof.
"Oh, we pay you an inflation-adjusted equivalent of 1980s $50K a year so you should be absolutely devoted to us."
In 1985, making $50k would make you one of the highest paid engineers in the country. Now it's a much more common pay range. Is your issue that pay hasn't outpaced inflation at a high enough rate?