I turn 60 this year. And your problem is?
Either you're good at your job (and if you've been doing it for twenty-five+ years you almost certainly are), or you're not. If you're good and experienced, you won't have any troubled getting an interesting job at a high salary. In my present employment, I was specifically recruited to mentor (and teach software engineering discipline to) a group of good but inexperienced junior developers.
When I was starting out in this game, thirty years ago, the person who fulfilled the role I now have in the team I was then working in was Chris Burton, who, as an apprentice, worked on the build of the Manchester Mark One, and who (after his retirement) led the rebuild of it. He was one of the best software people I've ever worked with, and he was already in his sixties when I met him.