API Error sporadically
<!-- BUG REPORTS THAT ARE NOT FILLED OUT COMPLETELY WILL BE CLOSED AUTOMATICALLY WITHOUT WARNING AND WILL NOT RECEIVE A RESPONSE. THE FORM IS HERE FOR A REASON. :). -->
<!-- Please ensure you read the documentation before creating a support request, especially the Troubleshooting page. -->
<!-- BUG REPORTS ABOUT BETA VERSIONS OF UNIFI / UBIQUITI FIRMWARE OR EARLY-ACCESS/BETA HARDWARE WILL BE CLOSED WITHOUT A RESPONSE. ALL BETA RELEASES FROM UBIQUITI ARE UNSUPPORTED -->

**Describe The Problem:**
For 2mo or so, API error pops up every few days and last 12 or so hours. Sometimes all is great and then other times the API error starts. Maybe some sort of API rate limiting? It'll eventually start functioning normally again a few days later and then right back to the API error. A hard reboot *sometimes* fixes the issue, other times it does not. The times that it does fix it, it only lasts a short time before it starts again.

**To Reproduce:**
No specific behavior triggers the error.

**Logs:**
<!-- In order to be helpful, include the relevant logs from Homebridge, if applicable. -->

```
[9/29/2023, 10:02:52 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:03:02 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:03:12 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:03:22 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:03:32 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:03:42 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:03:52 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:04:02 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:04:12 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:04:22 PM] [UniFi Protect] 192.168.1.1: API error: Throttling API calls due to errors with the 10 previous attempts. Pausing communication with the Protect controller for 5 minutes.
[9/29/2023, 10:11:23 PM] [UniFi Protect] 192.168.1.1: API error: Resuming connectivity to the UniFi Protect API after pausing for 5 minutes.
[9/29/2023, 10:11:23 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:11:33 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:11:43 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:11:53 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:12:03 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:12:13 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:12:23 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[9/29/2023, 10:12:33 PM] [UniFi Protect] 192.168.1.1: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
```

**Homebridge Configuration:**

```json
        {
            "controllers": [
                {
                    "address": "192.168.1.1",
                    "password": "xxxxx",
                    "username": "xxxxx"
                }
            ],
            "name": "UniFi Protect",
            "options": [
                "//Disable.xxxxxxxxxxxx",
                "Enable.Device.StatusLed",
                "Enable.Video.Transcode.Hardware",
                "Enable.Video.Stream.Only.High"
            ],
            "platform": "UniFi Protect"
        },
```

**Screenshots:**
n/a

**Environment:**

* **Homebridge Version:** 1.6.1
* **Node Version:** 18.18.0
* **Homebridge-UniFi-Protect Plugin Version:** 6.14.0
* **UniFi Protect Version:** Protect 2.8.35
* **UniFi Protect Controller Type:** UDM-P
* **UniFi Protect Controller Firmware Version:** UDM Pro v3.1.16
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:** iPhone, iOS 17.0
* **Operating System and OS Version:** Tested in Windows 10 & Synology NAS Docker Container

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
