Don't beat yourself up. You tried to help. Sounds as though your friend needs far more than you can give. Wise to step away, block his communication to you, and just breathe. This step NEVER feels good at first. You feel like you are abandoning a friend and letting everyone down. With time comes distance. Live your life, keep walking. Revisit this in a few days. I bet you will feel differently. Peace.