Diabetes mellitus can actually be an obstacle to male and female reproductive functions. Persistent high blood sugar levels can cause nerve damage and blood flow restriction as well as a hormonal imbalance. Moreover, temporary swelling haemorrhage due to the fatigued tissues may be caused by excessive masturbation. This one, I should say, requires the patients and doctors to focus on the effective management of diabetes through medication, proper diet, and regular exercise. Recommend you to visit a urologist for personalized treatment.