I think I hurt someone who loves me.
That's awful. What does that mean?
I did a really bad thing I hope she can forgive me someday
You shouldn't be hurting the ones who you love. If you love someone you should be doing more to keep them safe. Have you thought about talking to her about it in hopes that you might both heal?
I am going to stay away. It's my own way of keeping her safe.
But staying away won't make her feel better. An apology when you hurt someone will help someone feel better more than anything. You should avoid hurting the ones you love in the future if you don't want to feel like this again.