Yeah I’ve had that in various forms through my life. I’m now in probably my best state. One thing that helped was switching from vyvanse to concerta. I don’t know why but vyvanse didn’t really help. It just made me hyper focus on anything but work.
Another is starting a new job. I don’t think I realized how bored or burnt out I was until I left and joined a new company.
Other than that all the basics: sleep, food, and exercise.
But it’s hard when it gets bad. The only other advice is have a good therapist and psychiatrist that you trust.