Hello welcome
This may be due to chronic ( traumatic)
Epididymo-orchitis.That is inflammation of testicles and spermatic cord structures
If the pain persist, you may need one full course of antibiotics and analgesics ( if warrented mild steroids also, it depends after physical examination only)
Next Steps
consult the same surgeon again
Health Tips
try to avoid dehydration ( exercise causes)
take plenty of oral fluids
wear correctly fit supportive garments
check again for hernia by doing CT scan