There are 2 points I would like to make clear here.
Firstly, random erections are a normal part of male arousal and I would not be concerned form a medical standpoint.
Secondly, no amount of masturbation should cause any long term erectile difficulties.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.