What just happened?

So this morning (12am) I was doing my homework and got a huge headache which might or might not contribute to what happened next. I only at once so I decided hey I have a lot of work to do I’ll go to dennys have a meal and do my work. I had French toast eggs and sausage with milk. I was eating my meal and halfway through I zoned out. I was aware I zoned out. After zoning back in I felt weird, I was experiencing memory lapses, irritability and anxiety. I check my blood sugar and I don’t think it was alarming. So what happened? What would cause this? Oh and I also had the strange urge to go #2 SORRY for the TMI.
What just happened?
Post Opinion