Pipewire audio crackling problem (including Wine games)

When installing EOS it came with Pipewire installed, but when playing games under Wine (example: League of Legends, Osu!, Witcher 3) and watching YouTube videos on the Internet, it constantly crashes. When I uninstall Pipewire and install PulseAudio, it works when there is no sound, it does nothing when there is sound. How can I install Pipewire and fix the crackling problem?