Your issue with Audacity causing intermittent interruptions in the recording signal is a common problem.
Suggestions:
Update audio driver.
Update Audacity.
Try using a lower sample rate (e.g., 44100 Hz instead of 96000 Hz) to reduce processing load.
In Audacity, go to Edit > Preferences > Devices and select ASIO as the Host.