Erection problems for 3 years now

A few years ago, a girl falsely accused me of sexual assault. It really hurt me. She didn’t report it, but she told mutual friends and tried to turn people against me. She’s done this in the past, so my real friends didn’t believe it. But one so-called friend liked a girl that I was with the previous year and trying to get back with. He used this story to turn her against me just so he could get with her. It destroyed my mental health, I’ve always prided myself on being a good person, and this hurt

Since this incident, I haven’t been able to perform at all. I met a couple of girls over the last couple of years, but it ended because I’d put off sex and eventually, the girl would get bored and walk away. If it did get to the bedroom, all these thoughts would enter my head. Images of that girl or the guy that was meant to be my friend trying to destroy me just because he liked a girl I was close with. All these thoughts build up in my head, and I can perform. My erection disappears very quickly.

I’ve recently met a girl I really like and I’m worried. I actually told her the whole story as I thought that would help. She’s been so understanding, but we still haven’t had sex. I’m very worried that I will lose her because of this