Hello,
Masturbation can never cause erectile dysfunction or impotency. The most common psychological problems can generally be related to: inhibited sexual desire, anxiety disorders, depression, mental fatigue, stress, guilt, relationship problems, and lack of interest in sex by partner etc. Another issue could be feeling of guilt about how often you masturbate could be the real issue for the onset of an erectile dysfunction. If you are experiencing negative emotions/thoughts related to the frequency of masturbation, masturbating less often may solve the problem.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.
Erectile disfunction is very common in young adults and is not something you should be feeling this strongly over.
There is plenty of information on this forum where you will find good answers to the issue you are facing now.
Psychological help is the answer, not suicide. Please be more positive about the situation - it isn't nessecarily something you will have for life. Tension INCREASES Erectile issues, so the more you worry, the worse it is likely to get.
Best wishes