AITAH for accidentally exposing's my friends secret

TW: mentions of suicide and self harm

I made this account because I don't want my friends or family to see this and I don't want to make it worse.

So I (18M) have a small group of friends, Dani (18M), Cameron (18M), Pearl (18F), and Ashley (18F), all fake names, Ashley is like the groups little sister, she's sweet and kind but lately she's been changing. She had some family issues where she lost a close family member due to suicide. She started shutting down, normally we would hang out at one of our houses for a few hours on Fridays but she's doesn't show up as much anymore. She used to joke around with us but now shes quiet and when she comes, she just watches instead of playing video games or basket ball. I asked her if she was okay and her answers are always short, claiming she's fine and just needs time. I've also noticed lots of scars on her arms.

The other day I asked Pearl (She and Ashley have been friends since they were little and are much closer) if she knew anything or if she could talk to her and he agreed to, last night she messaged me saying "I don't know, she didn't really wanna talk about it but shes been thinking about things like death a lot lately and feels like living is too hard." I started to worry and wanted to talk to her about it so I messaged her in what I thought was her DMs "Hey Ashley, You good? I talked to Pearl and I'm really worried. I know you're struggling but I really want to know that you have a whole life ahead of you so don't cut it short." I realize now how direct that was. I didn't realize until a few minutes later when my phone was blowing up that I accidently put it in the group chat so the rest of the friend group saw. I tried to apologize but she blocked me and left the group chat.

I tried to talk to her at school but she wouldn't even look at me, I feel so guilty but I was just worried about her. All our friends agree that I should have put it in a private message (It really was a mistake) but none of them are talking to me other Cameron but even he's distant. I'm just worried about my friend and want to make sure she's safe but now I feel like an ass. So AITAH for exposing her secret like that?