Does a pinched pelvic nerve cause swollen testicles?

No. Most common cause for swelling in scrotum is a benign hydrocele. Pinched nerve can not cause this. Suggest you see a urologist who will likely perform or order a srotal ultrasound to confirm diagnosis and rule out any testicular malignancy.