WHAT DO I DO?!

My boyfriend of 10 months just left me because he says because of his severe depression he can’t even love himself yet alone me anymore and it’s not fair to me and for now we need space, he said that he does want to get together in the future though. He texts me here and there calling me babe and saying he loves me but then will ignore me for days even when I say I love him. Yet I see he’s on insta and snap. I want to try the 30 day no contact but he’s in College and will be going back to his home (In Florida I live in NY) in about 2 in a half weeks. We did long distance last summer so that’s not the issue the issue is I feel if we don’t fix this before he leaves he’ll move on. Also some other components we had never argued or fought the whole relationship till the last week because due to his depression he went A wall, we brought out the best in one another and were always happy. What can I do to better my chances of him coming back sooner?