Folks have been reporting various issues with Razer cameras disconnecting and crashing OBS Studio. I had the same issue, and after about a month of research, have isolated it to OBS Studio, not the Razer cameras. I found that rolling back OBS Studio to version 28 fixes the issues. Disabling plugins, etc., has no effect. you have to roll back OBS.
I have no insight as to whether OBS has a plan to fix this. Changelogs from OBS claim the issue was fixed, but clearly it wasn’t. I think the only issue is that version 28 is (allegedly) slower than the most recent build. I haven’t seen that on my system, but take it into consideration.