UnderOpenSky
baseline neural therapy
[gets on soapbox]
All these stories about people losing files using OneDrive are almost certainly just that: stories.
OneDrive doesn't lose files. People, however, lose/delete files all the time and then love to blame the tech for their mistakes.
OneDrive - in addition to a file's version history - at least has a recycle bin (and then a second-stage recycle bin!) to allow people to recover from accidentally deleted files.
Speaking of stories, here's an example of a scare story.
No. Word doesn't routinely delete files despite the impression the article headline gives.
Word for Microsoft 365 (i.e. the cloud-based version, not desktop Word) version 2409, build 18025.20104 might delete a file if the title* contains a capitalized file extension (.DOCX, .RTF) or #".
If that happened, you can still get the file back from the Recycle Bin.
And, being the cloud-based version, MS gets to fix the bug without you ever needing to install updates, etc.
*not sure if the quoted article actually means title or file name. Obviously file extensions, when created by the relevant app, wouldn't have a capitalised file extension.
[/soapbox]
One Drive not be signed in can cause this. But yes.