Advice please!

So my boyfriend and I have been trying to have sex but he gets so nervous that he loses his erection.. I assured him there’s nothing to worry about but it doesn’t seem to help. His erection is fine when we do other things. p.s. he is a virgin. Please help if you have any advice!!! Thanks:)