I'm trying to use wimlib on macOS 10.14 (Mojave) to split an install.wim file on a Windows 10 install image freshly downloaded directly from Microsoft, but it gives me this error:
wimsplit install.wim install.swm 3800
[ERROR] Error reading data from WIM file: Invalid argument
ERROR: Exiting with error code 65:
Unexpectedly reached the end of the file.
The install.wim file is 4900Mb, but this error appears instantly, suggesting it's not had sufficient time to read the whole file. I can't find any references to error 65, plus the forum software won't let me search for it anyway. In case it was the file system preventing the read, I tried copying it to a non-FAT32 FS, but it gives the same error there. What's going on here? How can I fix it?