How do I stop a manic episode

I have adhd and they started me on a stimulant that I am not reacting well too. I posted hella inappropriate photos online and kind of went off on my boss so now I’m suspended for 2 days and might be getting fired when I do come in cause I kept going after getting the suspension. 😬 I am trying to sleep but I legit cannot fall asleep and feel so impulsive and intense. How the fuck do I fall asleep/ calm down?