Spontaneous poweroffs on Framework Laptop 12

There is a firmware update available for that SSD.
Backup your valuable files and then try upgrading the firmware of the SSD using this guide:

You have firmware: 731130WD
Update available: 731150WD

There have been reports of old SSD firmware causing reboots of the system. I.e. Bugs fixed in more recent firmware.