I feel like such a failure

All throughout my pregnancy I was pressured by everyone including Drs and my husband to breastfeed. Of course I know the benefits so I made up my mind that I was going to try. I’m now two weeks postpartum with a preemie who can’t latch without a nipple shield, constant engorgement and blocked ducts, unable to pump more than 2 ounces at a time, and it’s all slowly sending me into a depression. I feel like I haven’t been able to properly bond with my baby because I’m trying so hard to feed her, but I can’t seem to be able to give her enough. She’s always crying for more. So I’ve been supplementing with formula. I try to breastfeed at night which leads to her clinging to my boobs all night or crying. It’s driving my husband crazy. So I’ve mentioned just switching to formula but he acts like that’s a disappointment to him. I just want to be able to feed my baby and be happy without fear of judgement.