Leed gave wonderful advice. She might be scared.

That's not something you should feel at fault for, but you have to understand why she might be scared.
At the same time, it's not okay of her to stress you out with her sporadic friendship with you. That's not healthy.
Talk to her again. Tell her exactly how you feel, and ask her to be honest with you how she feels. From there, maybe you two can make progress from there.
Take care, and I wish you my best.