I don’t know what too do

Pls help i need too break up with my boyfriend he is toxic sometimes but also extremely nice and caring but i can’t deal with this anymore but i can’t break up because he is the only person i have in my life... i have no friends nothing i’m scared that if i break up i end up totally isolating myself it’s so bad i sometimes think about killing myself just too end it..what should i do