You have in all probability adductor tightness, tight muscles of the inner side of the upper thigh. Whenever you do an activity that produces stretch on those muscles you will get pain.
Next Steps
identify and address the risk factors contributing to the same. appropriate stretching exercises
Health Tips
we can do a teleconsultation if you want.