Max CPU usage and 32 Protect API errors per second
### Homebridge UniFi Protect Version

6.22.0

### Homebridge Platform and OS

RPI4B Debian GNU/Linux Bullseye (11)

### Homebridge Version

1.8.1

### Node Version

18.16.0

### UniFi OS Version

3.1.16

### UniFi Protect Controller Version

3.0.26

### Describe the problem

I have had Unifi Protect running happily for over a year on this device. I've been regularly patching it and keeping homebridge and the plugin up to date. Recently, I have noticed that after a number of days, I start seeing repeating errors in Homekit: "Camera online, Camera offline, Camera online" If I check Homebridge, the CPU is at 100%, temp is high, and I always see screenfuls of these errors, sometimes at a rate of up to 32 per second:
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.

As soon as I restart it, the temps drop to normal, the CPU goes back to normal, and everything works fine - the messages don't appear for a few days, but then they come back.

I only have 2 cameras in Protect. 1 home bridge ffmpeg camera and an air conditioner integration, so it's very low in terms of whats installed in configured, until it recently started happening I've not had any issues with the CPU usage or these kinds of issues.

Any ideas? It looks as if it's smashing the protect APIs as fast as it can, and the pause isn't working.

### Homebridge HBUP JSON configuration

```json
{
    "controllers": [
        {
            "address": "******",
            "password": "******",
            "username": "******"
        }
    ],
    "name": "UniFi Protect",
    "options": [
        "Enable.Motion.OccupancySensor.******",
        "Enable.Motion.OccupancySensor.Duration.******.300",
        "Enable.Motion.OccupancySensor.******",
        "Enable.Motion.OccupancySensor.Vehicle.******",
        "Enable.Audio.Filter.Noise.******",
        "Enable.Audio.Filter.Noise.FftNr.******.90",
        "Enable.Audio.Filter.Noise.HighPass.******.200",
        "Enable.Audio.Filter.Noise.LowPass.******.1000",
        "Enable.Log.Motion.******"
    ],
    "platform": "UniFi Protect",
    "_bridge": {
        "username": "******",
        "port": ******
    }
}
```


### Relevant log output

```shell
[20/05/2024, 21:45:35] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:35] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:35] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:35] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:35] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:35] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:38] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:45:38] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:35] [UniFi Protect] 192.168.1.1: API error: Resuming connectivity to the UniFi Protect API after pausing for 5 minutes.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [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.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:40] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:41] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:43] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:43] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[20/05/2024, 21:50:46] [UniFi Protect] 192.168.1.1: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
```


### 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.