That is symptomatic of low end imagers that do not perform well in low light.
Often it is called dark current - noise created by the imager.
Looking for larger imagers with "better" "low light specification" will reduce this effect. Also, newer backlit imagers help to increase the lighting the imager has and can use.
The horizontal lines phenomena in low light is very weird. We test a lot of cameras and we see a fair amount with digital noise in low light but typically it is more 'popcornish', grabbing a screencap from a recent test:
The last time I recall seeing horizontal noise lines was at least 5 years with IQinVision cameras. It's highly uncommon.
What camera model or sensor are you using?
This is known as HVBN, horizontal or vertical banding noise.
It has many possible causes, but is primarily related to read noise from the sensor. There may be little one can do internally to the camera to help this.
In photography a bias frame could be generated and subtracted out, but obviously for a streaming video security camera this is impractical.
What camera model? Is it under warranty? Maybe you have some defective shielding or sketchy grounding in the imaging subsystem.
Some discussion here about this image.