if you haven't figured it out yet, in your configuration_adv.h there is a line
also
#define ENDSTOPS_ONLY_FOR_HOMINGuncommenting this will stop the printer from crashing.
also
#define min_software_endstops falsewill allow the printer to crash