See here: https://forum.audacityteam.org/t/error-opening-recording-device-error-code-0-success/58801/1 and here: https://forum.audacityteam.org/t/error-opening-recording-device-error-0-success/54952/1
I hope this helps.