I don’t know for sure but I think it’s probably coincidence.
“-9999 Unanticipated host error” is an error message from PortAudio (a library that enables Audacity to connect to the computer’s sound system). PortAudio makes many checks when it is unable to connect, and issues the error message from the first test that fails. If it can’t identify the fault, then it falls back to the “-9999” error, meaning that there’s an unspecified / unexpected error.
The two most common causes of “-9999 Unanticipated host error” in Audacity are:
Audacity does not have permission to access the recording device (I see that you’ve checked this).
Lost connection to a USB audio device.
Losing connection to a USB device may occur due to a faulty lead, insecure USB plug, CPU usage going too high. Even if the USB device has only been unavailable momentarily, Audacity is not able automatically reconnect, so the error is raised and it will be necessary to reconnect manually.
To reconnect manually:
Ensure that there’s no problem with the USB device, and that the USB lead is undamaged and secure.
Check that the USB device is still enabled in Windows.