Backup all your sites, conf, or if you can, better create a snapshot of your server.
Then try to execute again the migration script but this time we need to modify it a bit:
First, modify /etc/nginx/nginx.conf
and restore the original values for large_client_header_buffers
large_client_header_buffers 4 8k;
And restart nginx:
systemctl restart nginx
Now modify the migration script and run it again.
cd /usr/local/hestia/install/upgrade/manual/
cp migrate_ngnix_apache_nginx-php-fpm.sh migrate_ngnix_apache_nginx-php-fpm.sh.ori
sed -i '22,30 s/^/#/' migrate_ngnix_apache_nginx-php-fpm.sh
./migrate_ngnix_apache_nginx-php-fpm.sh
Then, check if the issue is resolved.