Protect Controller API Error
### Homebridge Platform and OS

Raspbian GNU/Linux Bullseye (11) (Pi 4)

### Homebridge Version

1.7.0

### Node Version

18.16.0

### UniFi OS Version

3.1.16

### UniFi Protect Controller Version

2.8.35

### Describe the problem

Good afternoon - Love the plugin but I've been having some issues with connectivity between homebridge and the protect controller. It works well for a while and then snapshots will stop working in homekit. Initially, camera streams will function fine in Homekit but snapshots will not update. After a couple more days, camera streams will also stop working and the status log indicates the following:

[06/11/2023, 14:45:31] [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.
[06/11/2023, 14:45:41] [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.
[06/11/2023, 14:50:41] [UniFi Protect] 192.168.1.1: API error: Resuming connectivity to the UniFi Protect API after pausing for 5 minutes.
[06/11/2023, 14:50:41] [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.

The homebridge server is on the same subnet as my UDM Pro and is not impeded by any firewall rules. Restarting the plugin child bridge, restarting the homebridge server, power cycling the raspberry pi, stopping and starting the protect controller does not work. I even tried deleting the controller username and password from the plugin to try and login but then it can't reach the protect controller to try and login again. The only thing that resolves the issue is to restart the UDM Pro itself, after which everything starts working again for a few days before going down again.

### Homebridge HBUP JSON configuration

```json
{
    "name": "UniFi Protect",
    "options": [
        "Enable.Motion.Trigger.F4E2C60F7D2A",
        "Enable.Motion.Switch.F4E2C60F7D2A",
        "Enable.Nvr.Recording.Switch.F4E2C60F7D2A",
        "Enable.Doorbell.Trigger.F4E2C60F2C1E",
        "Enable.Motion.Trigger.F4E2C60F2C1E",
        "Enable.Motion.Trigger.F4E2C60D9BD9",
        "Enable.Motion.Trigger.F4E2C60D9886",
        "Enable.Motion.Trigger.F4E2C60DA0D0",
        "Enable.Motion.Trigger.70A7413F4A21",
        "Enable.Motion.Trigger.70A7410FF335",
        "Enable.Motion.Trigger.70A7413F4529",
        "Enable.SecuritySystem.Alarm.E438830BBA90",
        "Enable.Nvr.Recording.Switch.F4E2C60D9AE1",
        "Enable.SecuritySystem.Alarm.E438830BB4F2",
        "Enable.Video.HKSV.Record.Only.Medium.F4E2C60F7D2A",
        "Enable.Motion.Switch.E438830BBA90",
        "Enable.Motion.Switch.E438830BB4F2"
    ],
    "_bridge": {
        "username": "0E:74:06:A6:BB:63",
        "port": 49858
    },
    "platform": "UniFi Protect"
}
```


### Relevant log output

```shell
[06/11/2023, 14:44:11] [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.
[06/11/2023, 14:44:21] [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.
[06/11/2023, 14:44:31] [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.
[06/11/2023, 14:44:41] [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.
[06/11/2023, 14:44:51] [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.
[06/11/2023, 14:45:01] [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.
[06/11/2023, 14:45:11] [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.
[06/11/2023, 14:45:21] [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.
```


### Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

- [X] I acknowledge that I am not running any early access / beta firmwares or operating systems from either Ubiquiti or Apple.