Does it occur if the document isn’t empty when saving?
Do you see a prompt for a save location before the error?
If so:
Where are you trying to save the document? Do you have write permission to that file/folder?