It is strange that macOS would report that error if the file does not exist. Which version of macOS are you using? Does it work with a different source folder or destination folder, or do they all fail like this?
That is good. There may be file permissions problem with the original folder. Sometimes it helps to Duplicate the folder and then create a .dmg of the copy.