Best relationship ever but he can’t stay hard. ;(

I am in the best relationship I have ever been in. My bf treats me like an absolute queen and pretty much worships me. When we have sex tho, he tends to either lose his erection mid sex, while he’s inside me, or he comes too quick and tries to pause a lot. It is soooo frustrating. Most of the time, he has to stop bc he just loses his erection. He says he is very attracted to me. Idk what to do. Thoughts????