When deleting a php version which is being used by one of the active websites, it seems like the fastcgi_pass directive is not (always) adjusted.
For example fastcgi_pass unix:/run/php/php8.2-fpm-xxxxx.sock;
Should've been changed to fastcgi_pass unix:/run/php/php8.3-fpm-xxxxx.sock;.