This turned out to be connected to the y axis stalling issue. The machine was loosing steps because the clock speed was set too too high.