Yes, the reason is quite simple. The effect is called cross talk where induction of other wires e.g. motors induce some voltage on the end stop line. When the board sees this it triggers end stop. A millisecond later it is back to normal signal but that is then too late.
Solution is make an electrical better wiring - twist sensor and motor/heater cables especially those coming close to the sensor cables. This reduces contact and also reduces the induction effect so it is less likely to get false signals from this.