You’re overdubbing, right? Listening to your backing tracks while you record a new track?
Overdubbing is a special case where the computer has to run its recording, playback, drive management, and displays all in real time and all absolutely, totally perfectly. You are what happens when the computer can’t handle the job.
Are you working from an internal hard drive? That’s recommended. A lot. There is a relatively new problem where computers are convinced that a cloud drive is perfect and works the same as an internal drive. It’s not and it doesn’t. The machine can even have trouble with network drives. Run away.
Clean start the machine and run Audacity with nothing else running. No games and no Zoom. Shift+Shutdown > Wait > Start. Not Restart and not regular Shutdown.
Pay attention if you do that and the problem changes even if it doesn’t get any better. Any change is good to know.
There is one more level to this. Disconnect your network and suspend your virus program. Never connect to the internet without your virus program running.