I’m not sure why but my sex drive has been a lot lower recently, and I’m very anxious that I have low testosterone or something is wrong with me. Is this a symptom of anxiety?

It could also be from masturbating too much, recently I’ve slowed down and it’s already gotten better. Plus I have had some pain in my balls and pelvis and penis recently it could be that too