Partner can't get hard?

My boyfriend of 2 years has recently been going to the gym pretty frequently, but as a result hasn't been able to have sex with me in almost a month. I've tried everything to get him in the mood, but nothing's working. He will get hard for like 2 minutes, then it disappears.

I know exercise can lower libido, but to this extent? I'm scared he's just not attracted to me anymore 😥 ANY IDEAS?

Note: I'm 21, he's 24. He's never had any sexual dysfunction with me in the past and has always always been able to perform excellently.