If your device listed in Device Manager shows an Error Code 31, it simply means that the device is not working properly because Windows cannot load the drivers required for this device.

This device is not working properly (Code 31)

While you may restart your computer multiple times to see if the error gets resolved, if it doesn't, you will have to reinstall the drivers once again.

1] Open Device Manager, and then right-click on the device which is having this issue.
2] On the menu that appears, choose Update Driver to start the Hardware Update wizard.
3] While Windows Update should find a stable driver for you, in case it cannot, download new drivers form the OEM website, and manually update it.

In case its related with Isatap adapter, then follow this thread.