Hi Emily,
I'd recommend re-installing OneDrive:
Reinstall OneDrive
https://support.microsoft.com/en-us/office/reinstall-onedrive-0660f354-6a69-46eb-b817-7f4e0d7b45b5
I'm not familiar with this happening when you save/edit files. Rest assured, if things are deleted, there is a backup recycle bin on OneDrive online to restore files:
Restore deleted files or folders in OneDrive
If this is helpful please accept answer.