Difficulties with my bf

So I am having problems with my bf. I have known him for a long time. I care about him deeply. Only recently we got into a relationship. We are facing difficulties in bed. We tried doing it but he can't keep it up. Like we couldn’t do it even once. I tried a lot. I comforted him. He gets a morning wood. He gets hard while making out but he loses it if I try to get it in. It’s not a physical issue I feel like it’s more of a mental thing.

I love him a lot. He cares about me too. I am very serious about us. I don’t want to lose him but physical intimacy is very important for me as well. I am really upset.