Husband issues-serious info

Tesha • BFP on 9/22
So I just was in the middle of BDing once again. And my DH couldn't finish...again. He finally broke down and told me his whole life he has had issues staying hard. It's not everytime but about 10% of the time he said. He doesn't masturbate a lot and doesn't know why it happens. I'm torn. I feel happy he finally told me What was happening but sad that this may be a huge issue for us. I don't know what to do.