Boyfriend losing feelings

what do I do? how should I even react? my boyfriend that I been dating for 5 months, told me he is afraid that he is losing feelings for me because he could feel it building it up and afraid he would end up hurting me one day. But at the same time he doesn't want to lose me. He told me he can't control his feelings and fear I will get hurt. He told me that he is lost in life and need to figure his stuff out. As he can't balance putting his energy into his love life and life. he told me he is putting me as the last option and he felt selfish.