Crackling sound when recording and also upon playback

This thread is similar to another: https://forum.audacityteam.org/t/stops-recording-after-6-or-12-minutes/61873/1

I like Trebor’s plan B solution…

Before you do that, it may be worthwhile checking that all of the sample rates are the same. The easiest thing to check is to simply switch Audacity’s sample rate between 44100 and 48000 and see if that fixes the issue.

What you are looking for here is for the hardware rate to match that on Windows to match that in Audacity. To check the Windows sample rate, in the Windows search bar, type “mmsys.cpl”, then Recording > startech usb > Properties > Advanced > Default Rate.