Hello dear. While oral Finasteride is associated with loss of libido, that too occurs in 0.1 % of patients. Minoxidil plus Finasteride solution will not cause ED. You should continue using the same for your hair
Now coming to ED problem. As your doctor has already told you, it's all possibly in your head.
Next Steps
Get tested for
diabetes. Talk to a psychologist.
Health Tips
Avoid alcoholic beverages and smoking