OP I got pregnant on the pill, it does happen. It’s not 100% effective even when taken correctly (lets also remember people get sick (D or V over 24 hours), take St. John’s wart, some antibiotics etc that can lessen effectiveness too). If your DH 100% didn’t want anymore children then he either need a vasectomy, also wore condoms as well as you on the pill, or abstained. You both had sex, you’re both responsible for getting pregnant.
When my DH and I decided no more children (well I was initially still on the fence/ open to the idea in the future kind of way), he started talking about vasectomy as he didn’t want more children due to space, money, lifestyle - we have three children. We believe in private education and sent our children to university too so he was thinking long term reality. After discussion, he had the snip.
If your DH truly does not want any more children, he can take on responsibility of birth control that has a higher success rate. Advise him to get a vasectomy. He should do it now while you’re pregnant.
By the way, our youngest surprise baby (before the snip) just left for uni. My husband is counting down the days until retirement (5 years from now). In reality, now we are the age we are, having young ones around would have been hard. So I’m glad we stopped when we did, stopped at the age we were.
If your husband truly did not want more, he needed to discuss and take steps to prevent pregnancy. He didn’t. Took two to tango. You’re pregnant now, you’re married, he shouldn’t blame you, cause you stress etc. Both need to accept and carry on. Best of luck to you op