Hi Maesh,
This forum isn't answering Inkscape support qustions anymore, since the new forum opened on the Inkscape website.
https://inkscape.org/forums/I'll try to answer here, but there are a lot more people on the new forum, who might be able to help better.
When you say the file is overwritten, what do you mean exactly? If the changes were saved, and you don't have a backup, it probably can't be recovered. If the file has not been saved yet, you could just use Undo. But if it's been saved, you can't undo anymore. You're welcome to share the SVG file, but I probably can't investigate it, as far as potentially recovering data. I just don't have that skill.
But if it can be done, someone in the new forum could probably help.
Fortunately, you can help to prevent this happening in the future, by enabling Inkscape's AutoSave feature. Edit menu > Preferences > Input/Output > AutoSave.