Back Pain

Idk about anyone else but I get really bad back pain when I'm on my period. I've researched it and it's because my body is basically having contractions to get blood out. Does anyone know anyway to be more comfortable when this happens or a way to stop the pain? Pain meds aren't working.