Welcome to HCM,
As there is development of pain in your lower abdomen only during masturbation
, it seems that you are suffering with some kind of infection in the related part. You might be suffering with vaginitis
or infection of para urethral glands. For diagnosis in your case local examination and investigations are required. You are therefore advised to please consult a Gynaecologist for examination & treatment.
Wish you good health,