I've seen this on my FlashForge Creator when the X-limit cable was failing, giving spurious end-of-travel signals. In my case the failure was intermittent, hard to check with an ohmmeter, but cable replacement solved the problem. Does your machine have something of this nature that could fail? Note ...