Supposedly, you can go to the deleted files folder to get back your missing files.
That didn't work for me. Instead, I took advantage of the OneDrive feature whereby all deleted files are always kept for 30 days. In my case, three weeks had passed, due to being on vacation when the loss occurred, and trying in vain to contact OneDrive
support personnel (who seemed to have disappeared).
I was able to go back and restore all of my missing files, since I still had one week left to do it. But since I had lost about 100GB, it took about 20 hours to do the restore. Even then, when OneDrive said the restoration was complete, it still took another
8 hours to actually restore them to my PC. I never really understood why that extra 8 hours was necessary.
Since that time, I've never knowingly lost any files. But the loss occurred during a period when I was deleting and adding many files, and I suspect OneDrive just got confused when handling a huge bunch of files, possibly due to something like a stack overflow,
since it had thousands upon thousands of updates to be made.