Thanks for the query.
can cause pain during periods
and it can also cause continuous mild discomfort especially when it is associated with pelvic infection
As you are having history of four prior section there is more possibility for adhesions.
As you are having irregular periods
also better to consult gynecologist once and get examined to find out the possible cause for your problem.
You may need on ultrasound and hormonal profile including thyroid hormonal evaluation.