Boyfriend suicidal if we break up

We have been together for a year. We both have mental health issues. He cheated on me. He says he is so sorry and I'm all he has. He says he understands if I need to leave him and he hopes I'm happy with whatever decision I make. I love him. He is also all I have right now. But I can't be with someone who could hurt me like that for his own selfish reasons. I need to leave. If I do he will likely kill himself. I don't know what to do.