Unexpected shutdowns (e.g. OS crash) will cause config.json to become corrupted. I believe this is because Mailspring keeps it open for R/W axis, so it becomes corrupted if Mailspring doesn’t shut down properly.
The client should behave in a way that is robust against this issue.
(Originally posted by brandondube on GitHub.)