Off topic question: how to best support a friend …


This is off topic but I’d really appreciate your advice. My question is around how to best support a friend who is in anger, hurt and a negative spin.
My friend has so many moments of inspired brilliance but when she gets dark I don’t know how to help her. I make things worse. I try to support her where she is but at the same time I say something “different” than where she is at , and that always makes things worse- it alienates her. I want to be a good friend, a great friend. Please advise on the how to help a friend when they are on a negative spiral. What is the best way to help a friend over the phone, when they feel bad. Also, how can I help myself after alienating a friend. Thanks