Negative thoughts during sex

I would like to share the thoughts that appear when I have sex and that produce my erectile dysfunction.

The thought that worries me the most is that I don’t like my partner and that this situation is going to end our relationship. This thought makes me very anxious. In addition, it causes that during sex all the time I am self-observing to convince myself that I can maintain the erection and that I like my partner. I need advice and help.