Experiment crashes with voicekey and Focusrite Scarlett 8i6

OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?: Run an experiment which collects audio recordings using the voickey component from a microphone connected to a Focusrite Scarlett 8i6.

What did you try to make it work?:
Previously, changing the audio library to sounddevice and the rate for pyo_init to 48000 fixed the experiment ending after initializing the pyo server. This was the call to pyo_init used:

voicekey.pyo_init(rate=48000, buffersize=256)

Commenting out pyo_init allows the experiment to run.

What specifically went wrong when you tried that?:
The experiment simply ends without producing an error message. If I attempt to execute voicekey.pyo_init() from the console, PsychoPy itself will also crash/close (it does not produce an error message). The message to stdout is “### Experiment ended. ###”.