Me too. I got mentally ill in 2001 and got burned out. I found out the hard way when you are the best most efficient worker they assign you tasks that other people can't or won't do. The stress builds up from the extra work and burnout happens.
I am 53, I should be a manager or CEO by now, but I am disabled and out of work instead. Learning all over at home with new technologies and languages like Python and Dart/Flutter.
Some people your age are managers or CEOs but most people are not, and there's nothing wrong with that. If that is your goal, keep pushing towards it in spite of your issues, but you should also consider focusing less on career and more on just enjoying life.
Folks like you who are passionate and have an innate strong work ethic are worth their weight in gold, and need to be nurtured and protected from burnout by their managers and peers.
I've been on both sides of this equation. As a consultant with my own business I've done stints of 80+ hour work weeks, wrestled RSI and flirted with the edge of burnout. I've also managed teams with superstars sprinkled in who take on visceral ownership of a project, working to the goal not the clock and doing whatever needs to be done to achieve success. Some here will criticize that as an artifact of poor management / corporate culture, but in my experience different people have different priorities in life and some come with a very strong professional drive and crave the opportunity to outperform. There's an incredible multiplier effect that can raise the productivity of the whole team. But if they're underappreciated, taken for granted, or blindly loaded up with ever-increasing responsibilities as you described it's disastrous. I liken it to using a rare, hand-crafted sports car to haul manure then leaving it out in the rain to rust.
I've learned how crucial it is to stay keyed in to the pulse of your team. Communication is key (simple questions like "How's your workload?", and paying attention if someone who's usually cheerful seems agitated or irritable). At times I've had to force reports to take a few days off in between cycles to regenerate and make sure they stay fresh.
Have also spent some years volunteering in emergency services, and watching ordinary humans placed in high-pressure situations you gain an appreciation for mental health and not being cavalier about it.
I hope your activities playing with those new technologies you mentioned rekindles that spark of wonder which first led you into tech, and you land a career with an employer who knows how to take care of their people. Look forward not back, you've still got years of professional opportunity ahead of you if that's where your desires lay.
I am 53, I should be a manager or CEO by now, but I am disabled and out of work instead. Learning all over at home with new technologies and languages like Python and Dart/Flutter.