Apps use the Android forced storage access framework.
And the file writing is performed by the system, not apps.
By default SAF wants to export on new files each time.
If overwrite does not work properly on your Android / device, better to avoid it.
And use the Android defaults, i.e. save each time on new clean files.