Had the same issue using a SKR Pro 1.2. Root cause was the board, the end stop did not trigger. This behaviour was not consistent, ie sometimes homing worked, sometimes it didn‘t. Soldering additional pull-up resistors to all end stops solved the issue.