Audio randomly becomes loud and starts cracking

Hello
I’m using a USB headphones with my laptop, and after a random period of time, the sound coming from an application suddenly gets really loud, and starts cracking.

There are no errors in journal and there is nothing that sets it (happens even without further interaction).
It can be fixed by restarting application or unplugging and plugging back the device.

Im using NixOS 24.11, pipewire for my audio, latest kernel and my laptop is ASUS UX3402ZA. The headphones are Razer Kraken v2.

Thanks for any help or replies.