I experienced something similar a good few months back, my XT camera during the night would become unresponsive, live view failed after a few seconds, recorded motion clips would only be around a second long. The camera was totally fine and normal during the day with no issues. It puzzled me for a few days until during the day i got a notification saying the camera was offline, took the batteries out and back in and it was fine again all day until the nighttime and did the same thing again. The next day I got a notification to replace the batteries, It was then that I realised the reason it kept giving up was because the batteries couldn’t provide the extra power to the IR LED.
Might not be what’s going on with yours as there’s not much info to go on but thought I’d add what seems similar to what happened to me