Anxiety caused by lack of self esteem

My my situation is different but my ED is solely caused by Confidence and lack of for that matter. I’m an Average sized guy at 6 inches. I have amazing sex when I’m feeling confident and in my body. When I’m anxious and feel unworthy I can barely get it up. Think I should do counseling, want to permanently be more confident.

I’m in the same situation. I’ve had some really good sex with my S.O., but all it takes is one flub up and the vicious cycle starts. I’ve lost all confidence in the bedroom and I even get to where I fear the next time we have sex. That’s no way to live. That’s why I’m here, I can’t get out of the vicious cycle and want to gain confidence back, buy trying to do away with negative thoughts and replace with positive ones.