Hello @Ali Rahman ,
Thank you for your question.
Please follow these steps, it will help you:
Uninstall the driver and reinstall :
Right-click on the problematic device and choose Properties, followed by the Driver tab, for some options.
Selecting Roll Back Driver will undo any recent updates and go back to the previous version. This is only accessible if there's an older version to revert to, however.
If you can't do this, you'll need to select Uninstall Device to completely remove it from your system. After doing so, reboot. Windows should install generic drivers for some devices, like mice and keyboards, upon restarting. However, you'll likely have to reinstall any manufacturer-specific drivers, like those for gaming mice, manually.
Hopefully, a refreshed driver will cause the code 10 error to stop.
If the reply was helpful, please don't forget to upvote or accept as answer.
Thanks,