It’s normal for newborns to poop or pee during or right after diaper change 😂. You can probably wait awhile after feeding or change in a “warm” room. Cause they tend to get the ‘coldness shock’ when you remove their clothings/diapers. (Probably the reason why the smaller the diaper size, the more the qty hahaha!)
It should get better after newborn stage.