Apparently your script is not using sessions correctly.
If a script is authenticating again and again, every time it queries the API, it also needs to logout and delete the session every time, to avoid session exhaustion.
*** [ DIAGNOSING ]: Operating system
[✓] Distro: Raspbian
[✗] Version: 10
[✓] dig return code: 0
[i] dig response: "Raspbian=11,12 Ubuntu=20,22,23,24 Debian=11,12 Fedora=40,41 CentOS=9"
[✗] Error: Raspbian is supported but version 10 is currently unsupported (https://docs.pi-hole.net/main/prerequisites/)
Raspbian/Debian Buster is no longer supported by either Debian or Pi-hole.
I recommend that you save your Pi-hole settings with teleporter, and then upgrade your OS to a supported OS. Then reinstall Pi-hole and import your saved settings.
I don't know how your script is handling the sessions, but the message "API seats exceeded" means you are not correctly deleting the sessions after using them.
You can take a look at the api.sh file used by pihole api command.
"Both the Session ID (SID) and CSRF token remain valid for the session's duration. The session can be extended before its expiration by performing any authenticated action. By default, the session lasts for 5 minutes. It can be invalidated by either logging out or deleting the session. Additionally, the session becomes invalid when the password is altered or a new application password is created."