Your pain is most likely due to overuse/strain of abdominal and pelvic floor muscles from exercise. Since there is no bulge or swelling, hernia is less likely. The mild, persistent pain with exertion or erection is usually muscular. Rest, avoid heavy abs/pelvic exercises, keep good hydration, and gentle stretching can help.
Next Steps
Observe with rest for 2–3 weeks.
If pain worsens, swelling/bulge develops, or you get urinary issues/fever, consult a surgeon/urologist.
If pain persists beyond 2–3 weeks despite rest, get a clinical exam and ultrasound to rule out hernia or other causes.
Health Tips
Avoid straining exercises till fully recovered. Seek early medical evaluation if symptoms worsen suddenly.