Error for panel :setcookie() expects parameter 3 to be integer, array given

I have deployed kirby 3 on google vm instance and runing using nginx. i have installed php 7.2, 7.3, 7.4 install on instance. after runing php -v it is showing php8.0 as current version but my kirby website is using php7.2.
What changes i need to do to work kirby with php8.0?

Kirby uses the PHP version that is active on your server. So this has nothing to do with Kirby but with what you activate on your server. The CLI version of PHP can be different from the one used by the web server.

And when the PHP version is changed, the web server needs to be restarted to pick up the changes.