Interesting, I am specifically taking magnesium to stop muscle twitches. In your case it is the opposite.
Around this time I had a few migraines and was recommend to take magnesium. Not sure if that's what caused the sleep starts but I also noticed my leg started to occasionally twitch inwards when I'm sitting. The sleep starts have kept me up for hours at night. Going to try and add more calcium in my diet to see if that helps the problem.