Mirtazapine side effects

I’m in my sixties. Have been using mirtazapine for 5-6 years for chronic insomnia. About 3 years ago I started having fugue episodes ten minute blocks where I had no recollection of what was doing. (This started right after a day procedure where they used Midazolam.) The episodes gradually softened to a few seconds at a time (4/5 times daily) now where i find myself not recognising what I’m looking at (its called Jemais vu, opposite of dejavu). I’ve tried unsuccessfully to wean myself off, obviously too quickly! if I didn’t think these episodes were connected I’d continue taking the mirtazapine. The insomnia is crippling. Has anyone else experienced anything similar?