Cannot set response code - headers already sent (PHP 8.3)

Hello, I’m encountering this error with shared links when using PHP 8.3. There are no errors when using PHP 8.2

NC: 29.0.2
PHP: 8.3
MYSQL
NGINX

cannot set response code - headers already sent
lib/private/Files/View.php:459) at /home/nextcloud/htdocs/cloud.com/lib/private/legacy/OC_Template.php#257