Hi ! You have not mentioned if a urine test was done for you or not. Sometimes, urinary infection also gives rise to this problem. If the urine test is normal, then it is recurrent unnoticed trivial trauma which causes this inflammation of the testes and epididymis
. You should go for a properly fitting scrotal support and some anti inflammatory drugs. It may take some time to get relief completely. So take rest and recover fast.