This could be due to an issue with the float switch, which regulates the water level inside the dishwasher. If it malfunctions during certain cycles, it can cause the dishwasher to overfill and leak water.