bf cant stay hard????

i’m seeing a guy that i saw for a few months last year. hes so sweet and funny and amazing and we get along so well and both seem to really like eachother but theres an issue that helped push us apart the first time.

i’m not sure why but he can get hard, but couldnt stay hard during sex. However if i give him a handjob he can finish fine and stay hard throughout. it sounds really shallow but im so sexually attracted to him that not being able to actually have sex with him for longer thann30 seconds before it goes soft is really shite

i dont know if anyone wlse has experienced this??? maybe its me even though he always expresses how attracted to me he is

i’m scared we will try to be together again and the same thing happens but this time i really dont wanna leave cause in my eyes hes perfect aside from this issue (and i feel bad cause its out of his control)

at first i thought it was nerves but i have no clue

is there any cause/fix???

UPDATE::::

We ended up being able to have sex and he was able to ‘keep it up’ till he finished. We just spoke about it and it was most likely performance anxiety, but once we spoke and i reassured him it was fine and it only happens every now and then now :)

thank you everyone for the support