Audio stops working after a few seconds of silence

I recognise there seems to be more issues when displayport connections are used compared with HDMI. But HDMI can be prone to issues if incorrect cable is used or used in wrong direction (directional cable).

Search on forum here gave this: No sound from Monitor Speakers on DisplayPort

Maybe websearch using "displayport sound problem Ubuntu 20.04" will also reveal some advice.