Confused

So recently my ex boyfriend broke up with me. We are best friends still and the only reason he broke up with me is because he wants to work on bettering himself and his mental state and also because he’s afraid to hurt me. We both have some serious mental problems concerning anxiety and depression, so I kind of get him wanting to wait a bit. But I guess I’m just frustrated because I feel like I’m losing him and he says he doesn’t want that to happen. He says he just wants to work on himself to better our future relationship, but it feels like he’s worsening it by doing this.

What do y’all think?