What does this mean and why do guys have it and what should I do?

He said he apologizes for disappearing it’s not respectful of my emotions or my boundaries and yet he keeps doing it he says, he doesn’t know why he does it it’s almost like a defense mechanism that he can’t shake. He’s said I’m right that he looses good people. Last thing he said was I’m not all mentally well and there’s nothing he can really do about it?
I wanna love him and be there for him so guys, what should I do and why do men have defense mechanisms or whatever.
What does this mean and why do guys have it and what should I do?
Post Opinion