Magnesium brain fog solutions?

Hello, I’ve been trying different types of magnesium’s and notice that I get brain fog shortly after taking. It almost feels like it goes straight to my head. I take it with my dinner and always seem to be “out of it” when it hits me.

Magnesium Glycinate I couldn’t tolerate at all (insomnia, headaches, brain fog). I seem to tolerate Magnesium Malate a bit better but still get brain fog and not perfect.

I’ll be looking into Citrate, Threonate and slow releasing Mag next. Any suggestions?