Has this happened to anyone else?

3 months ago in the middle of my period I started feeling very sick out of no where. My hands were shaking uncontrollably, I was very light headed, I became very exhausted and I had hot flashes. It all happened very quick and I ended up leaving school early and I slept from like 11 am to 6 pm. Something similar happened about 2 years ago but wasn't nearly as bad. It hasn't happened since but the month after I had cramps so bad I almost passed out in school and slept most of the day again. Anyone else experience this or know what could have caused that? It hasn't happened since then