It’s neither the sodium or potassium salt that is ‘naughty’ but they both can be used to produce a chemical that is unstable.
I remember, back in 1965/66, that the school lab technician spilt a solution of chemicals on a rough paved surface and for weeks afterwards we could generate tiny explosions underfoot. Afterwards, I wondered if he did it on purpose as he was a mischievous individual.
Later, at work, we regularly made another unstable chemical (similar but not the same) which detonated easily. It was OK until someone blew the drying cabinet door open by preparing too much at a time and it spontaneously decomposed – either too hot or local vibration!
Our supervisor used to get cross when there was a carpet of rubber bits on the floor – due to smashed rubber bungs – he was no fun