Worried

I’m 17 weeks and 2 days pregnant, I’ve been cramping my whole pregnancy but recently it’s been getting worse. I’ve been in the hospital twice from period like bleeding, my cramps are so bad that sometimes I just cry because it’s so unbearable. Every ultrasound they said nothing was wrong and the baby was okay but why is this happening?