Timeout Errors whenever recording for hksv.
**Describe the bug**
Multiple errors including “cannot read properties of undefined (reading toFixed)” this happens and video analysis error timeout whenever motion is detected for hksv.

**To Reproduce**
No idea.
**Expected behavior**
The camera should stream live when needed, and record motion in hksv.
[homebridge.log](https://github.com/seydx/homebridge-camera-ui/files/8930728/homebridge.log)

**Logs**
If available, attach the log where the bug is vissible

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment**
- Node.js Version: v17.9.0
- Homebridge Version: 1.4.0
- Camera UI Version: v5.0.27
- Operating System: Windows 10 (set aside server)
- Browser: Firefox/chrome cache cleared on pc

[homebridg
![Screenshot_19](https://user-images.githubusercontent.com/80123588/174385839-1a7f9f3c-2199-41ee-9ebc-943e6057de0a.png)
![Screenshot_18](https://user-images.githubusercontent.com/80123588/174385841-ab8ee1a3-59cd-47ad-a6f7-cc9cb9485749.png)
e.log](https://github.com/seydx/homebridge-camera-ui/files/8930728/homebridge.log)