I had something similar years back when Dropbox had a hissy fit and reset everything, deleting the root folder from both computers. I had a panicked moment thinking I’d lost everything until a combination of an old hard drive and using a recovery programme saved everything.
Apple Is shit for recovering stuff, sorry you lost everything