I thought MacOS had a versioning filesystem?
If this happens, can you not just roll back to the day before?