Why is he acting this way with me PLEASE HELP?

I’ve been talking to this guy for almost 5 months, He told me he had a girlfriend for 6 years (He’s 21 years old by the way and I’m 24) and she left him and got married to another guy so he was so heart broken he really loved her…I also was really heat broken because of my ex anyway I tried my best to help him and I always was there for him and he also was there for me and we got really close, we hanged out a lot and we also hooked up a few times…after like 2 months of talking and stuff he told that he got really attached to me and he cares about me so much and that he stoped talking to all the girls he used to talk to because of me and that he’s afraid to lose me and he wishes to stay with me and he hinted to me many times that he has feelings for me and really loves me and he even told once when we hanged out “I love you” but then he suddenly changes what he said and says the complete opposite like for example “If I get married someday to someone else I’m gonna stay with you” and everytime he says something different but I swear he literally can’t go a day without talking to me he even told me that and whenever we fight over something he gets sooo afriad that I leave him and he begges me to stay with him.. I asked him I he loves me or not because He made me really confused, He said that he’s afraid to fall in love after what happend to him with his ex and and that I’m older than him and maybe I’m looking for someone else and that like he might not be really on my mind and that it has nothing to do with me but he’s just afraid of love but then he keeps acting like my boyfriend and he gets super jealous over me so why is acting this way?
Updates
+1 y
By the way he also asked me if I love him after I asked him
I told him that I do have feelings for him so He said “If you actually really want me and have feeling for you then I’ll stay with you and help you and won’t break your heart”.
I then told him I was joking because I don’t want him to be with me just because of me, I want him to be with me If he really wants to and if he really loves me and I wanted to know how he actually feels about me honestly so I pretended I was joking because of tha
Why is he acting this way with me PLEASE HELP?
Post Opinion