Parameter is incorrect error with usb 2.0 but not with usb 3.0 with C# serial program
Microsoft Windows has transfer size limitations for OHCI, UHCI, and EHCI (USB 1.1 and USB2.0) controllers, see this publication. For HS and FS modes it is 4MB for most types of transactions. Bulk transactions have 32MB limit on xHCI (USB 3.x) controllers.