Immediately stop block break sound

Is there a way to immediately stop the sound after breaking a custom block? Just putting stopsound @a * minecraft:block.glass.break in the tick function works only sometimes. I don't really want to just replace that sound.

Continue to help post