Just a P.S.A. that bears repeating: Even though it feels like it would be better to quit since EJ has become such a toxic work place / environment, do not quit. If you do quit on your own volition, you are giving up many legal protections. Make them fire you. Learn the code words for ageism in disguise: "over-qualified," "passing the torch," "new perspective or cultural fit," "fresh energy," "doesn't want to learn the new technology" to name a couple. There are more and the company will dress it up as a compliment.
HR is NOT your friend.