Baby pooping hard pebbles

Ashley

My 8month is pooping hard and crying while he poops and making discomfort faces any advice or remedies ?