First time pumping

Hi everyone. I would really appreciate some advice or tips about pumping. I'm a FTM mom and my baby is 6 days old. I'm really struggling to BF. He's not laching on properly that even the midwifes struggle trying to help. I'm pumping today to give my nipples a break because they are sore, bleeding, and cracked. My midwife agreed with me. How often should I pump, when should I pump, how much to pump, how long on each breast? Any advice would help thank you. I'm so embrassed that I can't BF right that I have to post anonymously 😔 I feel so ashamed and a failure. Hormones are getting to me.