Breast feeding

My baby boy is three months old, I wanted to breast feed for a year but my nipples are soooo sore and bleeding I've tried everything. But nothing works not even my own breast milk. He's almost four months and is able to get on cereal. If I stop breast feeding imma feel like a failure. But I'm at the point I can't take anymore on my nipples. I didn't want him on formula and I'm trying my best to push forward with pumping. But I'm in so much pain. Any advice or tips on what to do?