What happens if you go into Settings->System->Audio Output, and change “Keep Audio Device Alive” from “1 Minute” to “Always”, then reboot - does it continue to work after being left idle for a while ?
I thought of that as well. Still no sound. Somehow it must be related to the hardware, as there’s no issue with the Pi whatsoever.