what's happening??

Ezra • 15, trans guy, bii
okay, so yesterday was the start of my period and I went to the gym. after about 45 minutes of working out I walked a bit then nearly puked then passed out. ever since then I've been having migraines off and on. I've been drinking lots of water and making sure my blood sugar is normal. I'm 14 and healthy. What's wrong with me??