What does he mean when he says "I'm not relationship material"?

I met this guy at work 4 years ago, we message each other every day, he started this and started sending me "hugs" for example "morning hugs! :D xoxox". I message him back. He has invited me over before and cooked me dinner, I have returned the favour, however there are literally months between when we see each other.

The last time he came over, he held me and kissed me in the most passionate way, and when he hugged it was as if he never wanted to let me go. However more months passed.

Just recently I asked him to go out to dinner (with the intention of finding out if we were only friends or if we could be more). He picked me up, opened doors and even pulled out my chair for me. I did mention when I asked him out that I was going to pay for myself however when we got to the restaurant he insisted on paying for everything, including the most expensive wine in the restaurant. He then invited himself into my house and we watched a movie. When he was leaving he started kissing me and hugging me again at the door, but just as he walked out the door he said "I'm not relationship material, you will just get hurt, I want to do the right thing for the first time in my life."

I took this to mean, that he has feelings for me but not enough to want to be with me and that was it, there was no chance for us. But then in the morning I get a message with the morning hugs again with the kisses. I am confused. Can anyone shed some light on what he might actually mean? Should I message him back or just ignore it and move on?
What does he mean when he says "I'm not relationship material"?
Post Opinion