There's a few very annoying audio and Bluetooth bugs on MacOS. I've even installed 3rd party software to hack a fix one of them.
I haven't heard the crackling for a couple of days though, so maybe it has finally been fixed in the latest 27.x beta or a recent Spotify client update, or maybe I'm just on a lucky streak.