Audio drops intermittently over HDMI

When connected to my TV via HDMI, the audio drops out for about a second or two at a time, every 10-20 seconds. This problem existed on ubuntu and pop OS as well. this problem does not occur on windows. This problem does not occur while using the headphone jack. I have tried disabling auto mute in alsa mixer which did not fix the problem. I have an intel 12400F CPU and RTX 2060 GPU.