Unplug the Oculus Quest Link consistently does the trick for me while having a SteamVR Vive connected.
When it is plugged in and compiling shaders/building light results in d3d device lost. Unplug the Oculus Quest Link cable and the building is fine.
So it’s both having a Vive Headset connected using SteamVR AND do NOT plug in the Oculus Quest Link cable.
Hope this helps someone.