I have had the exact same experience with Office 365. It overwrote my local copy with an older version from cloud. My finished version was nowhere to be found. Took me half the night to create the doc again.
I always save MS docs under multiple file names now to defend against this. It is a hassle though. I also use LibreOffice for personal stuff, largely for this reason.
XigmaNAS
https://xigmanas.com/xnaswp/