I managed to skip the error by running C2 as administrator.
Now the new error is that when you have finished exporting and clicking the "Open destination folder"
this takes me to the root folder where C2 is installed, but I did not configure that export path, so that's a mistake.
The file "config.xml" is now in the root folder of C2.
That file should be in the folder where I did the export.