renameio.TempFile("", g.Path) has currently no Windows Implementation.
Since Save/Load is maybe not the primary use case, could you consider to use a best-effort approach in Windows? Or Maybe use another library? e.g. https://github.com/natefinch/atomic