Adding database give internal server error

Hey hope you all are doing fine
I have multiple sites running on my server using hestiacp.
Today when i tried to add new website database it gives mein internal server error 500
Same is the case when i try to open configure in admin settings is also gives internal server error 500.
Kindly guide me whats the possible solution to fix it

Check /var/log/hestia/nginx-error.log

thrown in /usr/local/hestia/web/edit/server/index.php on line 148" while reading response header from upstream, client: 119.73.117.147, server: _, request: "GET /edit/server/ HTT>
2023/02/03 13:30:41 [error] 598#0: *62 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null giv>
Stack trace:

this is what the error shows

2023/02/03 13:16:29 [error] 1025149#0: *24 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array,thrown in /usr/local/hestia/web/edit/server/index.php on line 148” while reading response header from upstream, client: 119.73.117.147, server: _, request: “GET /edit/server/ HTTTP/1.1”, upstream: “fastcgi://unix:/var/run/hestia-php.sock:”, host: “user.silverline.dev:8083”, referrer: “https://user.silverline.dev:8083/list/server/
2023/02/03 13:16:29 [error] 1025149#0: *24 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /usr/local/hestia/web/add/db/index.php:152
Stack trace:
#0 /usr/local/hestia/web/add/db/index.php(152): array_map()

properly copied