Cramps and school

So my cramps are really bad and cause me to faint and vomit because they're so painful so obviously I'm off school each month. (Usually trying new medication each month I will be going on the pill this month though as I've ran out of non hormonal options according to my doctor)
Anyway it's currently 4:43 am and I'm rolling around while it kills me as per however tomorrow (today I guess) I have 3 exams so like it would be really convenient if I could like get better or something.....
Does anyone have any idea of how I can survive these exams or like get to sleep.
So far I have a hot water bottle, painkillers and some tablets my doc gave me months ago which sorta helped ish....