Young/porn-related ED

Hi, first post on here so forgive me if it’s in the wrong place. I’m 22 and semi-addicted to porn with bad ED. Whenever I go back with a girl I’m instantly very anxious and it always leads to the inevitable. I have thought about buying pills to help for a while now but am worried it might affect me long term. I feel like now my sex drive is only prevalent when thinking about porn and not real-life sexual experiences which also obviously negatively affects my relationship chances. Any tips/advice would be greatly, greatly appreciated. Thankyou