Please read relationship help!

My boyfriend and I are having a bad time right now and we have been talking it out he told me he feels that he isn’t good enough to be in a relationship but that he doesn’t want to break up

He doesn’t talk much like about his deep feelings so for him to say this it was hard for him but now he doesn’t want to talk

He seemed to be hurt that he said what he said, Im so unsure how to help him. do I let him have his time or do I try to make him feel better (but I wouldn’t know how)

We haven’t been through such a hard time like this ? Any advice please