This really does sound so Bella/Jacob. I understand how you feel since I too am very friendly with my guy friends. They are basically my brothers to me and a few of them are my exes. Honestly I think there is only one ex that I no longer talk to. I think you should confront him and tell him he is not invited. He should understand that his behavior warranted that. It sucks that he is going through alot right now, but so are you.
Don't beat yourself about how you acted/led him on. It was accidental because you are just that kind of person around your close friends.