Uterine irritability

Has anyone had uterine irritability before in pregnancy? I’m 38 weeks pregnant and it is super painful and regular. I have a c section at 39 weeks. Has anyone delivered early due to uterine irritability?