Got ur pain, though it's unfortunate but may be rash caused by Allergy or Fungal infection.
Keep area dry, use sun dried inner wear.
Next Steps
consult AYURVEDIC skin Dr or conventional dermatologist
Health Tips
apply camper mixed warm coconut oil or used candid dusting powder