My parner has just been told he has erectile dysfunction. I feel guilty like it is my fault?

Erectile. Not your fault for sure. He needs to talk to urologist for evaluation, unless he consumes alcohol or uses medication that affect performance, that needs treated.