Error Code -9999 when recording

Hello all,
I can’t configure Audacity with my mixer. I get a -9999 Error opening recording device message every time I select the Behringer line input for recording.
The installation includes

A mixer to which my electric guitar is plugged, the headphones
Lenovo Thinkpad 2011 laptop running Win10 to which my mixer is plugged into the USB port
I’m new to all this, so I haven’t embarked on any risky modifications
Currently what works is for example Host: MME, Reading: HP earphones REALTEK, Recording: Realtek microphone array
No errors but the sound is awful: everything seems to be recorded by the PC microphone if it picks up the sound of the headphones on the table

Thanks for your help
Laurent