Ed is ruining our relationship?

My partner of 4 years is in his early 50s and for the past year hes been having issues getting an erection and being able to have sex. He’s tried viagra but it didn’t help. I’ve told him I would be happy with any kind of pleasure such as him using his fingers, toys etc on me but he says that makes him feel worse about himself and he’d rather not do anything intimate at all. Would you stay in the relationship?