It does seem that you are picking up some electrical noise. Are you using your switches Normally Closed? That is normally reasonably noise immune, and also if a wire breaks it looks like an activated switch. It's possible that you need to shield the motor cables or at least separate the power and signal cables as much as possible. If needed, then shield the limit switch cables.