I think its not "best practise" to turn off and on the recording device while the DAW is still running
and trying to access the device via a device driver (ASIO driver). I could bet that this is the key reason for your BSOD.
Maybe RME can give a more advanced statement. My statement is based on certain experience and "gut feeling".
If I try the same here with Cubase 9.0.20 and RME UFX+ then the following happens:
- 1st I got only a Cubase Warning Message to select another driver or to wait until the device is available again
- when turning it on, then it went good the 1st time.
BUT .. as soon as I turned it off again, an exception/crash happened inside cubase.
I would say .. things like this lead to unpredictable states. Sometimes it recovers, sometimes not.
In my case it impacted the DAW stability, in your case it was BSOD.
You can turn on and off the recording device at any time without issues when its not in use by an audio driver.
But if a driver has a session open to such a device, then bad things can happen when turning the device off and on.
Even for more normal USB devices its advised to eject them properly before plugging them out to ensure that all buffers have been written properly and that you will get no issues in terms of data loss.
BR Ramses - UFX III, 12Mic, XTC, ADI-2 Pro FS R BE, RayDAT, X10SRi-F, E5-1680v4, Win10Pro22H2, Cub13