what do i do

so my bf usually says things without thinking and sometimes disguises it as a joke, atleast i think so. like for example, last night we were talking about something and he says “but you have no friends”. im right out of highschool so it’s kind of weird rn i lost some toxic friends and now i barely have any friends which I’m kinda insecure abt because i used to have many but now i don’t. and then he was like “im jokinggg” and i said you’re not joking and i obviously have barely any friends rn and he proceeded to name my one or two friends and then named his friends which obviously were not my own friends and that’s what annoyed me a lot. he also used to call me fat as a joke and when i told him to stop he did. He says he makes these kind of jokes w his friends and they all laugh and that’s why he does it. he feels very bad and i don’t know what to do because he never thinks before he talks and he’s always saying hurtful things.