Anti-seizure medicine and ED

So I have to take anti-seizure medicine (carbamazepine) due to epilepsy. A therapist said this is the cause of my ED.
While with a girl I quickly loose hardness and sex drive. Its better when I am masturbating alone, although sometime it takes long to finish
What can I do? Tried suplementing l-arginine for now