Thanks for your query.
Noted the history and understood the concerns.
Feeling of throwing up, abdominal cramps like period pains, unable to hold the poop once it comes and headache indicate that you are suffering from severe intestinal infection called entero-colitis
I would advise you the following:
Tests of stool.
Tests of blood and urine.Ultrasonography
Clinical evaluation and examination by your Doctor.
A course of an antibiotic, metronidazole
Symptomatic treatment like antispasmodic for the cramps, Domperidone
for the nausea you are getting and Paracetamol
for the headache.
Plenty of oral fluids and electrolyte solutions to maintain the water and electrolyte balance.
Home made food, boiled and cooled water.
All these things will help you to get a relief.