From history it appears that you get this problem during or after period.
So you might be having some bacterial infection due to weak local hygiene during this time.
Possibility of having fungal infection
is also there.
Go for one course of antibiotic medicine.
Apply triple acting cream locally.
Keep local hygiene clean, dry and airy.
Change sanitary pads frequently during period.
Ok and take care.