Some times you can love someone too much, be to devoted to them...and sometimes you want to help someone and trick yourself into thinking you love them.
Emotions are fickle and confusing but if you couldn't help him then mayhap you weren't the one that was meant to heal him. So don't blame yourself and, instead, hope that he'll find the one that was meant to be there with him.