Had a horrible and strange experience lately.

I had a strange period of 1-2 weeks where I felt many things in such a confusing way, hardly got any sleep and spent my time pacing around.  It was a living nightmare and I had a very high level of anxiety focussed on trying to escape.  It was hands down the worst experience of my life so far and I've never felt something like that before.  Reality was shimmering and I was dreaming when I closed my eyes but couldn't sleep and remained fully awake, it was like there was no way out.  It made me realise how frightening the mind can be as you can't just hide from it.

When I finally came down I was sleeping in the region of 16 to 12 hours for a good week before beginning to get to a more human amount.  Somewhat normal sleep duration now I'm feeling able to get back to a routine but I still experience some days where my sleep duration is very high again and energy levels are very low (relative to the usual low right now).  I'm guessing that's just the medication helping as much as can be expected during healing though.

Since I've crashed, I felt quite high levels of what I have been told is likely DPDR, these have been quite dark in terms of thoughts and confusing moments that are definitely getting less frequent, with lower duration and intensity, but the occasional episode still hits me.  I'm just very glad it's been clearly improving and more than likely coming to an end, but I'm curious if this sort of reaction is normal when someone experiences an extreme state?

I'm guessing this sort of thing just fades away fully?  I'd be interested to hear if anyone has had these issues and did get back to their usually self.  It'll probably ease my mind to hear that.