I need advice, I'm a complete mess right now

so I was with this boy, and then someone tried to kiss me when I was on holiday, he saw it as me cheating on him so ended it with me but we never stopped talking, I went his the next day, we were still more than friends and he still classed us as together but not official , we became official again a week ago& ive been struggling a lot recently with my depression and family issues, he's said he needs space because we spend too much time together but he's seemed okay with it up until now, do you think it's because he's finding it too much effort to deal with how upset I am at the moment? And if that's the case should I stay because I feel like he doesn't care enough to be with me at my worst times.. I just need advice..it's been about 4 months in total we've been talking