Try taking it off of the UPS. Not all UPS are created equal.
Some cause more problems than they solve. Especially when you are looking at a situation where your HDD is in a 24/7 read/write cycle.
What is the firmware your system is on? What is the output of the NVR’s power supply?