Finding something new to strive for is not a bad idea, but it should be orthogonal to your past interests. Something you have to come in at a relative beginner level. Of course you're never going to be as good at it as people who've been doing it for 20 years plus, but that's OK. Think more in terms of self-development rather than winning a competition with others. I've had some limited success in regaining a positive outlook by diving into programming and networking at a similar age over the past few years, coming from a background of academic benchtop lab researcher who never wrote a line of code (maybe an Excel macro) before.
For a chuckle about the inevitable decline as we age, see this quote from Trainspotting:
For a chuckle about the inevitable decline as we age, see this quote from Trainspotting:
https://www.quotes.net/mquote/1200371