I think I got bit by that last night - working with sound in Mathematica, a simple MIDI tune was playing and then my MBP made a horrendously loud noise. Didn't damage the speakers, which surprised me given how loud it was. Probably the fastest I've mashed CMD-Q to quit a program though.
Had that happen to me as well on a 15-inch Touchbar. Left speaker made a horrendous sound on viewing a YouTube video and is now silent. Could probably be fixed under warranty but it's my work machine and can't have it taken from me for 2 weeks which is how long servicing / replacement usually takes in Bulgaria where I'm in.
https://www.dpreview.com/news/2610969677/some-macbook-pro-ow...
(RIP my 2018 Macbook Pro speakers, they sounded great when they worked)