breakup

My boyfriend and I broke up and I'm sad about it but I just can't be with him anymore he has bipolar disorder and he doesn't take his medicine then on top of everything I drop everything just to see him or be under him that includes school/home work and even sometimes working I felt like the break up was a good idea for me to focus on my self and he focus on his self but idk what to do I still feel bad.