I have IBS too but I sometimes have very large and painful stools. It causes great anxiety as well. The only thing that helps my situation is just pushing it out as fast as possible and getting it over with as quickly as possible.
Sorry if this doesn’t help.