The element ID of your audio element is the same in multiple layouts. When you run a Javascript function targeting the element, the browser doesn’t know which one you mean so isn’t able to stop each of them.
The function @hyperthetical is mentioning is LoadSound & StopSound which can help you get multiple audio objects playing (and stopped) much more easily.