Usually you are getting a more detailed error message which contains a path. So the best way to solve the problem is to start searching for that file from the Nextcloud document root directory.
I don’t think that you will be able to find out by which operation this file has been created. I think you can delete it if it has only a size of 0 bytes.