Don't get panic. Here is the solution from ayurveda!
Firstly any trauma to back?/any strong white discharge before periods?/burning sensation during urination?/clots during periods?etc.Any investigations like urine culture,E S R, abdominal ultra-sonography
test ever before done.If no, then do the necessary tests (adv by your physician).
If these results are -ve then the treatment is
1)dicocction coriander seeds +turmeric +cumin seeds with cow's ghee in morning,before lunch,after dinner is very effective to abdominal pains + headache.
2)be relaxed!don't take mental pressure.
3)praval panchamrut/arogyvardhini rasa/varunadi quath/sahnkaha bhasm+honey are equally important.
4)application of hing (asafoetida) arround umbilicus
is very effective at this stage.
5)drink warm water whole day as it clears the basti (bladder) & urinary track.
Hope this will solve your problem.