Often, incompatibilities with drivers or the audio software in Windows affect audio playback or recording so ... question the make and model of your PC, your hardware ID and driver version ...
Valve released another update to the Steam Beta Client for Steam Deck and Desktop Steam, which includes more improvements and tweaks to Game Recording.