5.1 audio channels randomly mixed up

You’ll need to go down the rabbit hole of figuring out how audio works on Linux:

I’ve had other unrelated issues with 5.1 Audio only as Stereo - #9 by IvanAT and the only way is to get your hands dirty and make some custom scripts which fix the mess.