It’s an old (known) bug. Recording to SDcard will cease approx 1.5 hours after the camera loses WiFi.