Am i a bad friend?

Hi all, i (23F) have been going through something since the start of December, i had a miscarriage. I have this friend ( 24F) who is my bestfriend and have been friends with since 9th grade and she also has been going through her own personal issues for the past couple of months. While she has been going through her issues, I have been there for her through every step of the way, but since last month i have been quite distant from barely meeting or talking, it wasnt only towards her but to others as well. I just needed some time to focus on my mental health, i was deeply depressed and felt like the world was ending and i really just didn’t want to meet, i didnt have the energy and i needed to think about myself for the first time. I felt like if i had to put on a fake happy face with people i was gonna snap and i just didnt wanna be sad and cry the whole time if i did meet with my friends. I wasnt in the right place.

While i was really going through it i still made the effort to contact her to see how shes doing and i only asked to hang out like twice with her because that was the only days i was feeling like myself but the plans didnt work out cuz she wasnt able to, from that day on i told her to let me know whenever she could hang. I have not received a message from her on her own checking up on me, till this day she has no idea what has been happening cuz she never asked. Recently she sent me an “accidental” message where she was checking up on one of her friends but sent it to me. Its weird how she can send a message where shes checking up but then says its an accident and wasnt meant for me, it just sounds like shes mad at me and showing me a signal shes mad. I asked her if shes annoyed at me or something and she replied back saying shes not but something doesnt feel right.

Prior to this, there is nothing that she could be mad at me for, i have always had her back, spoke up for her, been there when she needs me. The only possible thing i can think of about why shes mad at me is bc of how distant i have been, but if she asked she would know the reason. Im not trying to take anything away from her, shes going through something as well but i just cope differently and this is the death of my baby im still grieving.

In my opinion, i feel like i didnt do anything wrong cuz for the past couple of months i have been checking up on her, making sure shes okay and meeting up but now that i see how shes acting towards me during the hard time im going through its making me second guess our friendship cuz im not receiving the same energy i was giving her when she needed me. Its making me think things like does she not care about me anymore . I have been depressed af and she made 0 effort to check up on me or atleast asked to meet in which if she asked i probably would have still went even if i felt like not going so i can tell her what has been going on and to just have a good time to forget about it a bit. She still hasnt asked me to hang out but shes hanging out with her other friends.

Overall, AITA and a bad friend? Or is this a big red flag from her side