Thank you for posting your query at DoctorSpring.com
When was your last period , is this period different in any way, to suspect a miscarriage or a pregnancy related complication ?
Sometimes menstrual cramps are worsened by stress, late nights, sickness such as your UTI.
You can try doubling the dose of pain medication, and taking a hot water bottle to bed.
You should also get yourself investigated for endometriosis.
All the best
Please feel free to discuss further,