It kind of seems like mental instability caused by puberty/being a teenager. We all had/have/will have junk like this happen.
I'll share one of my past issues: When I was in summer school in my junior year (June 10, 2013), everything started out normal and fine. My teacher for ACT Prep was not there so I just sat in on a makeup English III class. During that time though, I began getting a massive headache. It wasn't any normal headache either; it had to have been the most killer painful skullcrushing headache I'd ever had. I decided to try reading from my ACT book and could not focus. Pretty soon, I could not see the words on the page - just black scribbles on paper. My blind spot seemed to be increasing to the point that it was in front of my straight view of vision, making discernment of objects nearly impossible. The light in the room was worse than Satan to me, and further aggravated my pulsating headache. I considered getting up to tell the teacher, but a number of variables stood in my way. One, my vision was almost at a total failure and I probably wouldn't be able to reliably find the teacher's desk (all I could see was light and it appeared I was looking through ceiling fans at blurry objects/colors). Two, I try to avoid making myself the center of attention. Stumbling around to the front of the room and unsure if I would pass out, I decided not to do anything. Three, the nurse's office was on the other side of the school, and my teacher would likely have just made me walk 1/4 mile (literally) all the way there when I didn't have faith in 10 steps across the room. Four, my parents would be called and probably wouldn't even have been able to pick me up (dad at work 30 miles away in wrong direction, mom was still sleeping and watching all my siblings).
So, I just laid my head on my desk and closed my eyes to suffer in silence. My eyes being closed helped immensely especially against the light. By the time that class was over, I was still lethargic and had a poor sense of balance, but the pain was mostly gone. My teacher asked me if I was okay before I left and I think I just kinda nodded.
That night, I felt wonderful compared to earlier. I went to bed happy. At 4:00am though, I woke up and was salivating on an insane scale. This wasn't the first time it had happened and it usually made me feel nauseous, so I got out of bed and walked out my back door for some fresh air. It was all in vain though. A few minutes later, I had this strange feeling. I didn't recognize the signs of impending puking since I never get sick, but that's what happened. It came in like ten bursts, all being so bad that I was bent over at a 90 degree angle emptying everything I had consumed that day. I successfully covered the entire patio, my feet, my legs to just above my ankles, the siding on the house, and the grass near the patio. Today, I blame the events of that day to a migraine coupled with pent up stress.