Hello,
There are multiple reasons why this could be happening. But since you are associating it with your menstruation it is advisable that you get a scan. If at all there is any issue it will be seen and it can be treated.
Next Steps
ultrasound scan, if clear revert back
Health Tips
apply warm pack on the region of discomfort