Audio Issues with Plex, cracking noise while playing 5.1



Hi folks, I have been having a major audio issue with Plex and chrome cast for over a year now and I haven't been able to find a proper fix. The issue happens when a high quality file with 5.1 surround sound is played, there is this really loud crackling noise thats generated, it's really jarring to hear.
My chrome cast is connected directly to the television. I have no media receiver. The sound output of my television is a pair of stereo speakers.
The only work around this is to change the streaming quality from 20mbps all the way down to 2mbps. Anything higher than 2 will result in that issue. 2mbps is however very low quality and moreover the sound playback is really faint.
I saw somewhere where someone suggested editing chrome cast script in Plex media server and reducing the value from "6" to "2".

This was the default value already so nothing to change here.
Is there any fix available?
Kindly help.