Hi,
Usually, both of them are fine.
In general, the following factors may have a greater impact on camera life:
1, Oxidation. Oxygen reacts with the metal inside the camera, causing a change in performance. Then the camera is broken.
2, Abnormal power supply. Sometimes, unusual electrical impulses, such as static electricity, can destroy the camera's internal components.
3, Vibration. Vibration may cause some solder joint contact problems.
4, Corrosion. Where humidity is high, corrosion can lead to short circuits.
Compare with thses factors, switch off or run continuously do not matter.
Thanks
Chad