Recording Cut Off - crackle and whine noise

Perhaps you have turned on Sound Activate Recording: https://manual.audacityteam.org/man/recording_preferences.html#:~:text=Sound%20Activated%20Recording%3A%20Enables%20or,(see%20the%20item%20below).

Also, see these two threads: