Is the crackling sound from the headset or from the console? Because I've used numerous Xbox Series X and they all generate crackling or static sounds via the controller, direct out of my TV, and also via HDMI. I've turned networking completely off, changed TVs, took it to someone else's house (in case it was my electrical system causing static somehow), and tried every single audio output mode on the Series X and it never goes away. When I call support they pretend to not know about the problem, but their forums are full of people with the same thing. Also Reddit, AVSforum, gamefaqs etc etc. I have zero confidence in MS ever fixing it.
Ugh, the crackling I sometimes get coming wired out of my controller is part of the reason I've been wanting to try a wireless headset.
I've read that turning off your soundbar helps, but I still get it intermittently. I move my laptop and phone away too in case they cause interference, but I've never been able to definitely figure out the cause of it.