The way to reproduce this bug :
1. Set a deathcount variable : /scoreboard objectives add Deaths deathCount
2. Setup a hopper clock running on a command block with this command : /scoreboard players set @a[score_Deaths_min=1] Deaths 0
3. Detect the power from commandblock with redstone comparator
4. Put a command block next to the comparator : /playsound mob.wither.spawn @a
When a player dies, the sound is not played. However, the sound is played only when this one respawn.
Just to clarify it is not "/scoreboard players set @a[Deaths = 1] Deaths 0" it is more like "/scoreboard players set @a[score_Deaths=1] Deaths 0" Try that๐