I’m no Doctor but it seems like your whole system was out of wack physically it would certainly cause our mental stability to go out the window.
You also might be getting lucky and the medication kicking in sooner than average.
On average doctors like to see sleep
From 7-9 hours daily. I’d watch your sleep for sure.
When do you see your Pdoc next ? Do you have a T ? If not I’d recommend you find one. It can really help us learn how to better take care of ourselves.