I can't tell, but I suspect this is more likely a problem of ageism rather than generalism here.
But maybe beyond a certain age you need to specialise simply in order to compete for positions.
Most employers are going to choose a younger more pliable (or cheaper) hire over someone who knows the same stuff but due to lived experience is less tolerant to bullshit.