Poops in the middle of the night


My 4 month old recently started pooping at night. Once around midnight and again at 3:30-4am. He was sleeping through the night as a breastfed baby but now wakes frequently due to poop. Anyone know why???? And how do I get him back to his "normal" sleep schedule which was like 7-8 hours of uninterrupted sleep!