Device Manager Code 38 After Reconnecting a USB Peripheral

Code 38 points to the previous driver instance remaining in memory. Repeatedly unplugging the peripheral may recreate the same sequence without clearing that state.
Restart with work saved
Save open work, safely eject storage where applicable, and close applications using the device. Choose Restart rather than repeating a quick unplug and reconnect.
Choose the next step
Connect the device directly after Windows starts. If the first connection works, reproduce the original sequence once and note which app was open when the device was removed. Check for a supported update to that software or driver.
Compare two connections
Compare the first and second connections. A fault that occurs only after a particular application closes or a device is removed is useful evidence for vendor support.
See the Microsoft reference for technical details. For related Windows PC troubleshooting, identify the affected device or browse the Windows Drivers library.