Hi,
I've read through both of your Q threads concerning and thought that I might chime in here, for what it may be worth.
I encountered this very same issue (or at least similar) a few years ago on one of my devices. This is what resolved it for me:
If memory serves me correctly I performed this with the problem USB peripherals (there were two) disconnected from the device (again, if memory serves me correctly, this was key). In Device Manager, expand the USB controllers then select the View tab>Show
hidden devices then scroll back down to the USB controllers (expanded). Then uninstall any and all entries shown with an exclamation mark (usually yellow) and choose the uninstall/remove driver file option as well (a restart may be required individually with
each one if more than one removal is needed to be performed). After the last one restart once again then let the system stabilize (you can watch the Task Manager for this) and then plug-in the peripheral(s) (one at a time if more than one is involved) and
Windows should reinstall the device on it's own in most cases (if the device is not recognized by Windows disconnect the device and install the most recent driver from your OEM or the device manufactures website as applicable).
For my situation the download and install of a driver was not needed (the peripherals involved had worked fine previously) and the issue has not reoccurred since.
That being said, during my research I did come across an odd-ball occurrence of the Device Manager code 38 instance that did not apply to my situation but non-the-less could be worth mentioning (linking to) here (with the solution involved):
https://community.spiceworks.com/topic/487249-code-38-problem-with-device-driver-on-windows-2008-r2
Again, for what it may be worth.
Hope this can help and good luck going forward.
-Richard