Hi there ~
I understand your concern.
Masturbation is normal and the urge to masturbate is a normal physiological process. However, anything done in excess is not going to be helpful. You would know your limit. There is no such thing as treatment for shortness of the male penis occurring due to constant masturbation.
Anxiety can cause you to lose erections while trying to have sex, especially for the first time. It would benefit for you to have good foreplay and afterplay, and not just intercourse. If you need further information you might benefit from seeing a
sexologist or reading up more on foreplay. Women like foreplay and rarely do they say that sex is not satisfying. It might help, to take your wife with you to a sexologist for therapy or to a psychotherapist for counseling regarding intercourse and also courting, to build the relationship.
Firstly you might need to consult an
psychiatrist to find out if you have any difficulties in your libido or have other mental health concerns like
depression. Otherwise, you have a very common problem of
erectile dysfunction and / or
premature ejaculation and it can be easily treated with medications available during this time. As for natural ways, if you go with ayurvedic medications, confido by himalaya has case based evidence for efficacy. The class of medication is called phosphodiesterase 5 inhibitors (PDE5Inh) selective serotonin reuptake inhibitors and it also helps with decreased libido which is a result of depression if you are going through one. I advise you to consult with a qualified psychiatrist who might be able to help in this regard. I hope this helps.
Also I am glad that you have no other health issues and hope it is the same case with your partner. Also having a stable mood and a good sleep at night might be very helpful.
Take care and have a lovely day!