Am I in the wrong ?

So I’m slowly starting to distance myself from a close friend. Every time I talk to her it feels like a chore. She only talks about her problems and how miserable and stressed she is. Everytime we hang out I just want to go home. But I don’t want to seem messed up. She even works across the street from me and I try so hard not to bump into her. I don’t want to ghost her but I just honestly don’t want to keep this draining friendship going.