A user ran config set with a value the CLI cannot encode as JSON. The command failed with a TypeError, which is expected, but afterwards settings.json held only a fragment such as {\n "bad": and the next startup could not load any configuration. Support has also seen half-written settings files after a disk filled up in the middle of a save.
Expected: a save that fails for any reason leaves the previous settings file exactly as it was, and a successful save leaves the complete new configuration.