Everything you say here rings true for me. I do feel like I have a dysfunction, based on how it used to be, and I'm aware of the medical and psychological issues that contributed to it. But I know it doesn't mean my sex life is over.
I've also found a silver lining in the way it's slowed me down and gotten me away from performance-oriented views of sex. I'd rather focus on a relationship, build a friendship slowly and let it catch fire at some point if the chemistry develops, and then discover one another's bodies patiently, step by joyful step.
Getting away from mechanical thinking takes the penis (or at least the erection) out of the driver's seat.