DVR keeps freezing

My DVR keeps freezing up. I’ve exchanged the box and the replacement is doing the same thing. Any ideas?