Unfortunately, the real answer is - it depends :(
in your case, the basic answer is more likely that real-time video encoding is VERY computationally demanding. And your computer isn't up to the task... And laptops are almost always, optimized for battery life, not the computationally demanding task of real-time video encoding. Laptops can do this, but will almost always have additional thermal throttling considerations over a desktop
I recommend monitoring hardware resource (CPU, GPU, RAM, Disk I/O, etc) utilization [for ex. using Task manager’s Performance tab and/or Resource Monitor] to see if your system is being maxed out with your settings
You don't mention the types of cameras and how connected to PC
Having a GPU to handle video decoding (from camera) and encoding (for stream/recording) can help, but you can use CPU as well.
Typically, one tries to use GPU offload to reduce workload on CPU to free it up for other tasks. But if CPU is powerful enough, that isn't necessary
So you may be wondering... well, what CPU would be enough for 4 cameras? and again, it depends on LOTS of other factors, plus resolution, fps, and more for the cameras themselves.
And look into USB Root Hub overload/overwhelm issues in this forum, as that could be an issue for you as well (again, depending on technology in use for camera connectivity). And beware CPU impact of adding chroma key, various Audio filters/effects, etc. ... not to mention background OS processes. Sorta like a multi-variant calculus in complexity of considerations... kinda fun if you are into that sort of thing
As for desktop GPU, you are looking for a Turing or Ampere (latest) NVENC capable GPU, so that used to be GTX 1650 Super or newer/higher model.. there _may_ be some recently released 1650 with Turing... ymmv