Same here, it hits me hard, and anxiety plus rotten sleep come with it. It gets worse on a higher dose, and when my blood sugar sits low, like early morning before I've eaten.
I came looking to see if sleep problems had come up for anybody else. It's sending me round the bend. On a bad day, 4am arrives with me wide awake. I've only just begun the magnesium tablets, and I don't know if they're helping.