Wtf help, don't know what's happening

Eating healthy but I very hours I need the loo and I will pop and little pellet and a thick yellow liquid?!? Anyone know what going on?