It's absolutely OK to love someone from a distance. Sometimes the relationship is so toxic to yourself that you have to let go or be dragged. It does not mean you love her any less, just that you cannot have a relationship with her.
I am so sorry you are going through this. Sending you huge hugs!