I wrote a Python script that polls VoiceMeeter and Windows to check if there's a mismatch on the specified audio device being connected and/or set as the A2 physical device, and fixes the discrepancy if so. This fixes the issue I was having of needing to manually restart the audio engine on disconnecting/reconnecting my headphones, and needing to manually remove selection on them when they're disconnected for an extended period of time. This is now automatic and it's a much better UX.
#!/usr/bin/env python
import voicemeeterlib # pip install voicemeeter-lib
from subprocess import check_output
from time import sleep
DEBUG = False
DEVICE = "Headphones (Bose QuietComfor

