Update number 2:
Certaint high gain profiles with a lot of low end still crackle and click during palm muting.
Crackle _and_ click? Doesn't sound like SPDIF related then. Perhaps digital distortion somewhere in the chain? Try lowering input sense (I know....) and the gain on your soundcard to see if it helps.