Trouble sleeping vitamins at night

Don't take vitamins or eat after 630 pm. Took magnesium at 8 and wide awake at 2am. I usually have no trouble sleeping.