Feeding Baby Breastmilk and Anxiety

I have been exclusively pumping for the first two weeks of babies life. We tried BF in hospital and LO and myself both hated it. Pumping seemed the way to go except now I’m having severe anxiety and depression problems associated with not producing enough milk. I’m no good to my child in this depressed manner and would love to know how to best transition from breastmilk to formula.

I still have a small supply built up for the next week and would slowly like to wean baby off by one month old. What worked for you guys?