You were in love. It takes time to come off that vibe. But there's no need to go beating yourself up over having loved someone who turned out to be not so healthy for you. It happens.
Give yourself the time you need to heal, then move it forward. Next time, you will probably go slower and get a better sense of the person's character before jumping in deeper. It's ok.
Good judgement is sometimes grown from bad experiences.