Phycological sex anxiety

25M had phychological ED for a while. I know it’s all in my head but it just feels like it gets worse whenever sex comes closer. Like I start feeling confident but then the closer it comes to having sex the more pressure builds and I don’t know what to do. I have been seeing this girl for a few weeks and had great dates but now I feel sex will be on the cards very soon I feel like my anxiety has all come back and every part of me wants to just run away. Any tips for getting back on track and calming myself down? I know this is 100% in my head and I can get erections no problem when alone but I’m just struggling to shift my mindset