Welcome. IME people of this age, who are this honest, know themselves. He has honestly told you, he has some issues. He has honestly said he doesn't know what to do from here. Have you suggested counselling? If he has commitment and relationship issues and is willing to try to work out why, so he can continue this relationship with you, then you have to decide if you are willing to stay with him through that uncertainty.
If he is not willing to do anything about it (rather than he doesn't know what to do), then he is accepting of his issues and does not feel a need to remedy the situation. IME in this sort of case, you can only lead a horse to water, you cannot make it drink.
Let him choose what he needs, you cannot control others, only yourself and your own reactions. Once you can accept this, then you can decide based on reality not on guesswork, what you wish to do.
All the best,