Maybe a mixed episode... you can feel so overwhelmed and sleep depreived and racing thoughts enough to make you want to... "you know".
Comfort shopping maybe, like I do comfort eating... hard to stop sometimes!
Try to be gentle on yourself, tell your self nice things, like you just need some comfort.
I ho[pe it passes quickly - that's another thing to tell yourself - this is an episode and it will pass. Get with doc if you can for something to help you get back on sleep schedule.