How do I reinstall the firmware from Snapmaker 2
follow the instructions
Snapmaker2_V{version}_{date}.bin
Just update the firmware to the same or other version again. For Default-Marlin settings - see here:
For factory reset, look at this: