I get this exact same issue. My camera is a Logitech c922 and I use the Personify Me function for removing my background (no space for greenscreen). When the camera isn't plugged in OBS crashes immediately. This wouldn't be an issue normally, but sometimes I don't have access to my camera but need to do something on OBS for other projects.