Fafhrd said:
The "Invalid MS-DOS Function" error seems to be a bug:
Windows 10 invalid MS-DOS function - Microsoft Community
From reading the latter part of that thread I would suggest that the culprit was 3rd-party AV.