The file location was synchronized with OneDrive.
Using another location that is not synchronized solved the issue.