I'm sorry you're dealing with this, it can be tough to navigate break ups. In my own experience with break ups, it was much healthier for me and the other person to completely stop and block all forms of communication - including seeing each other's profiles on social media. It was definitely hard at first, but well worth it to allow space and time to heal and gain a clear perspective, ultimately serving us both better. With time, I was able to see a lot of compromises I made for the relationship and consult trusted friends and family for guidance and accountability.
If this guy is having issues, could it be that continuing to engage with him would actually be enabling those habits to continue? What would it look like to spend the next few weeks focusing on investing in yourself and growing to be the best you can be? Seems like you have a great head on your shoulders. I will be keeping you in thoughts and prayers and wish you the best moving forward!