Under normal circumstances, your changes should be permanent. Something is going wrong.
First, have you tried any of the troubleshooting steps? About the Bug reports category - #11 by system
What OS? What Obsidian version? What installer version?
Are you storing your vault in a syncing/cloud folder? If so, and you have any file conflicts in your settings, that might be a reason this could happen.