"Cannot Write File (file path)" error sometimes when I try to save

If "Process Explorer" can't reveal the reason, there would be another tool:
"Process Monitor"

Here is how it works: