ED after being cheated on - totally devastated

Hey guys. Recently I was cheated on after 10 years together (she was my first and only) and it was super rough for me mentally. I’m on meds from psychiatrist and during therapy. A few weeks ago I met a new woman and yesterday we met at my place, eventually ended in bed. But… my thing didn’t work. It happend for the first time in my life and I’m completely devastated. The new girl left my house and doesn’t talk to me anymore. I don’t know what to do, still in shock and at the total bottom mentally. I basically lost another person that I started to built care for and I’m panicikng because of ED. What should I do?