You need to visit doctor if stool is hard and bleeding. It might due to milk formula and it is heaty therefore baby has hard stool. Meantime, try to massage at the tummy, both the calves and do bicycle feet exercise to stimulate fart as well as to see if the stool comes out smoother/different colour.