4-5 weeks cramping...?

I’m about 4-5 weeks with period like cramps. I hardly notice them during the day, but they’re there. At night it’s like they’re constant and I can’t get comfortable in bed. Seems like the only position I can sleep in is on my back. Anyone have this or maybe have a solution or something I can do to help it??