Why not study medicine and become a doctor? The web dev industry is too ageist and mostly runs on churning new-grads, whereas as a doctor, gray hair is an advantage not a perceived "disability".
Or try less hip domains in SW development popular with gray beards like embedded. Pay isn't as hot as web dev, but age is not a problem.
Edit, since I'm comment throttled and can't reply: In my country studying medicine is free/vey cheap. And SW devs don't make six figures here so studying to become a doctor is way better for your bank account and job security than competing with thousands of new-grads in an ageist industry.