Baby pulls off and cries

Baby is 5 weeks and the last week she will pull off and cry the first 5 minutes of nursing. This doesn’t happen every time she feeds. She also does this while drinking a bottle with a size 0 nipple- so I know it’s not too fast for her.