Moved to Help from Feature requests because it sounds like something had gone wrong that needs troubleshooting. The settings should be preserved.
Are you syncing your vault in some way? If there’s a sync conflict, Obsidian may read the wrong copy of the file when it starts. If you don’t think you’re syncing, Microsoft may have opted you into OneDrive: https://obsidian.md/help/sync/switch#Move+your+vault+out+of+your+third-party+syncing+service+or+cloud+storage. If that’s the case and you haven’t told OneDrive to keep your vault files downloaded, it may have offloaded the settings file, causing Obsidian to create and use a default one.
The ribbon settings are saved in the <vault-name>/.obsidian/workspace.json file.
If you have multiple copies of that file, e.g. workspace-device-2.json, workspace-device-3.json etc., this can happen and is usually caused by a sync service.