I've been having this trouble lately. I connect my iPad to my PC with no problems and use it as normal. But when i change for the second or if I'm lucky the third time a window from screen to screen, I have the BSOD with the next error code: UNEXPECTED_KERNEL_MODE_TRAP.
My PC it's kind of new, I built it in april so i don't think it's a hardware problem, alas it's the only reason I've had the BSOD since then. Anyone knows how to fix this? I've reinstalled the spacedesk's drivers already and had like 2 or 3 Nvidia updates since my first screen. Thanks in advance.