This would suggest your code does something to the device OS.
Could it be that you are targeting an old version (pre introduction for USB Control Requests) and flash the device OS too (i.e. when flashing the debugging version)?
When this happens, put your device into Listening Mode and run particle serial inspect to see what version each individual module has.