Significant other issue

Hubby and I are trying to get pregnant. Both of us are 38. We even just had our first appt with fertility specialist. While we both want a baby badly it's hard to try to BD because he's been having difficulty getting or maintaining his erections. he told the FS and has been referred to a urologist. But does anyone have suggestions or advice. It seems to all of a sudden be this way as we were fairly actively bding last month and before. He's been put on some vitamin from FS but I don't think it helps with this issue.