Hello there, sorry to hear about your situation. Sound like he might be going through some problem in his social life or at work. It seems like you tried to sit with him to talk things through and if that doesn’t work then the next step I would suggest is to get professional help. Getting a couple’s therapy can help improve and resolve any relationship problem. I can say from experience as my husband and I went through therapy after we had a set of fallbacks in our married life.
I can assure you the therapy can help you get the solution to the problem you are having.