Does pre-cum make him not be able to stay hard?

I’ve been hooking up with this guy, and for some reason multiple times it’s happened that he gets pre-cum (which a lot of guys get) but afterwards he just can’t stay hard. He doesn’t actually cum, it’s just pre-cum but then we try to have sex and he just can’t. I’m confused because this has never happened to me before so I don’t really understand what happens and why, but I feel bad because he gets embarrassed. Is there any way to fix/help this problem? Or does anyone know why he can’t stay hard after pre-cum? Thank you!