When poop comes out in little balls or pebbles it usually means that your poop has stayed too long in the intestines.
When the poop stays in your intestines too long the poop can dry out and break apart into the little balls or pebbles.
You could be partially constipated and not being able to poop out all the poop so the leftover poop inside your intestines dries out and breaks apart into the little balls.
Usually once the constipation goes away the poop should return to normal.
I sometimes get poop coming out in little balls and then a week or so later the poop comes out normally again.
But sometimes poop coming out in little balls can be caused by other conditions such as Gastrointestinal Disease or Irritable Bowel Syndrome.
Even toddlers or young children can have poop come out in little balls and that is usually caused by constipation which goes away within a few days to a week or so.