Sex Soft and hard

Sam

So everytime I go to have sex with my boyfriend he gets super hard then goes soft either right b4 or during. I don’t know what’s the issue but it’s become a real serious problem with our relationship ? Help