Firmware reinstall

Just update the firmware to the same or other version again.
For Default-Marlin settings - see here:

For factory reset, look at this: