I've been there, at least mentally. Sometimes your friend may have other real life problems and they're overwhelmed too. They don't know how to help you and they feel upset. Sometimes even if they're ignoring you saying, "I am sorry. I am going through a rough time. I will give you space." And then setting a few days aside to cool your head and theirs and going "Hey, do you mind if we talk? What's been going on with you? I feel like I'm upsetting you and you don't want to be friends. Is there something we could do?"
Like maybe your friend feels you don't care about them or that if you only text them about your bad feelings, they feel a kinda wariness.
Im also going through fearing a friend rejecting me. Logically, I know they're going through their own big problems and might be at risk themselves, but I'm sensitive and compromised and the "I don't want to talk to anyone" line hurts, a lot. I've deleted my messaging app, reinstalled it, and checked like crazy. Obsessive.
But gotta shove that under the rug.