Hello dear, I understand your concern. The problem you described in erection is mainly with your wife. This is a common problem i see in my clinic. Normal erection elsewhere and having erections normally during early morning after waking up makes it clear that there is no any organic problem and there is no permanent problem associated with your erection. Still, if you have any such issues you can consult your physician and can undergo penile Doppler.
There are other few details I would like to inquire about are any history of chronic illnesses such as
diabetes, hypertension; any medication history; and since how long this problem is ongoing.
As I see after having all above negative history the problem would be more of psychological. Any ongoing conflicts in family, work
stress, marital disharmony, expectations or refusal from partner may be the major reasons underlying your condition. Resolving those underlying disputes might help.
I would suggest you to think about any of the underlying issues described above. Discussion with your partner might help you to resolve it. Alternatively, a consultation with a
psychiatrist or sex therapist might help.
Hope you got your problem resolved.
Wishing you a good health