Idk where to post 😪 but need help

My 1 month old has been super fussy . We started her on Similac Alimentum but her pediatrician said there is no point of her being on that if she doesn’t have an allergy. So we switched her to enfamil gentlease . She has been really fussy when she has to poop and after feeds sometimes . Almost like she is having trouble . Then she poops and fusses even more . She was the same way on the Alimentum but instead got constipated and couldn’t poop but still the same pain like fussing. Idk what to do . Any suggestions?