I've had Debugger Canvas installed for some time without any issues. However, the build script for a project I have taken over calls devenv.exe, and when testing this script I got crashes every time. I added /log to the call, and saw this in the log:
SetSite failed for package [Microsoft.VisualStudio.Fragments.Package.VsPackage, Microsoft.VisualStudio.Fragments.Package, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null]
I tracked this down to a component Debugger Canvas uses to provide its code editing features. The errors stopped when I removed Debugger Canvas and its VS Fragments dependency.