Semen leakage during bowel movements

Patient: I am 26 years old boy. I am having this problem,sometimes when i have bowel movements, semen flows out of my penis. I feel very depressed and terrified about this. I have the habit of masturbating 2/3 times per day . After stopping it some days ago I’m facing now this type of problem. I have also some pain in my leg bone. I have to go pee a lot of times. Is this a major health issue??please help…i am having depression cause of this please help..

Symptoms: Pain in leg bone and muscle, headache

Doctor: