It is worth highlighting that this sort of thing is not just an Apple issue. It happens frequently to peoples Google accounts, and probably Microsoft accounts, as well.
The only sane advice to anyone is always have another copy of the data. Preferably locally, but in another cloud provider at least.
If it only exists in one place you might as well be using the recycling bin to store you important data.