When using an Obsidian vault in OneDrive, you need to make sure the “Always Keep on This Device” setting is set for that folder. (pic is from macOS, but Windows should have something similar when right-clicking on the vault folder.)
It’s possible OneDrive offloaded some files/folders in your vault to the cloud. I’d double-check that setting.