Solid poop at 5 months

Samantha

Hey everyone, my little one just started some medication for reflux and since then every time he poops there is a lot of grunting and fussiness and when I change him he has solid poop about the size of a golf ball or so.

What can I do to make him more comfortable?