Welcome to HCM and thanks for your query.
Common causes are
If not done already., a physical examination is a must by a surgeon/ urologist
Till then you can try
1. Tight scrotal support.
2. Ice application over the painful area.
Wishing you good health