So since my last post the camera hasn't had any glitching despite the fact it has been in an area with sudden changes from dark to light and sudden movement from time to time. The only time it glitched was 1) when I first plugged it in and 2) when I turned off the light and it switched to night mode (I have tried to repeat the scenario but can't get it to falter).