I found that pipewire from backports has better sound transmission (newer package) than the stable one when used inside virtualbox, for testing:
sudo apt install -t bookworm-backports pipewire pipewire-pulse pipewire-alsa pavucontrol pipewire-audio wireplumber