I'm also a senior dev and have suffered from burnout in the past. Building tangible things and learning the skills necessary to do it has helped.
Something like this: https://github.com/IBM/MicroscoPy
What you're describing sounds like it could be more than burnout though. I would also try to find someone to talk to.