That struggle is so real, it can be a lot to take in and be a very frustrating setback, especially when it causes more problems after finding a solution!
Personally, I have found the most helpful thing for me is to not take my medication multiple days in a row. This helps the peaks and valleys even out a bit more for me and create less of a dependency. That, and taking half doses instead of full ones when I can. Everyone has different needs for ADHD medications, but if it’s new to you and you’re trying to find what works, taking less (both in dosage and in days of use) can have a big impact in making your body feel less intense coming off. My psychiatrist says that he always recommends break days during the week for ADHD meds, like a lot of people take med breaks on weekends. Another consideration is meds like adderall/ritalin can impact sleep and make those mood swings worse. A lot of people take melatonin or other meds to help with sleep when taking stimulants.
Your prescriber is the most important person to talk to about this, though! Keep in mind everyone’s needs are different, and make sure to talk to your prescriber about any issues you are having with the meds, any changes to your dosage, or any new medications you’d want to try before implementing any changes yourself.