To be a 50 year old engineer you would have had to start your career in the 90s. There weren't 10% of the number of SWE in the 90s as now. That's why you see the profession skew so young. I have seen no evidence of older engineers having trouble finding work.
My career went in to the toilet in my 40s, and it has never really recovered. However, I'm an introvert and on the spectrum, so I lack good networking skills and never moved up the career ladder.
Even so, among my circle of friends there is a consensus that many of us were struggling around age 50, and now I am 60. The only jobs I've had in the last 5 years have been contracts. My current gig, I haven't seen a raise in 3 years, despite 20% inflation. I've been told that the company I work for has a freeze on raises, so I will have to start job hunting...