Any advice about how to recover from this issue during USB flashing?
[███░░░░░░░░░░░░░░░░░░░░░░] 13% | Flash failed.
Writing over DFU failed: Error during special DfuSe command ERASE_SECTOR:UsbError: OUT control transfer failed
make[1]: *** [flash-app-and-os] Error 1
make: *** [flash-all] Error 2
What happens if you flash without putting the device in DFU mode? Is it able to switch automatically to DFU mode or do you get an error?
Are you able to flash the application by itself using Workbench: Flash application (local)?
If the failure happens only when flashing Device OS, you can try to flash the Device OS part directly by running particle flash --usb ~/.particle/device-os-flash/binaries/5.7.0/p2/p2-system-part1@5.7.0.bin (replace 5.7.0 with the Device OS version you are using). Does that complete successfully?