Error 9996

I was using Audacity to record internal audio in my pc. I just received a Logitech G Pro X, when I try to put the headset (loopback) but when I hit on record it shows the error 9996.

I know it seems counter-intuitive, but do you have permission to use the microphone? See: Turn on app permissions for your microphone in Windows 10 - Microsoft Support