From the error "No pool defined. at least one pool section must be specified in config file", it seems that there is no config file in folder /etc/php/7.4/fpm/pool.d/. You can create a file 'www.conf' with the following content in that folder. It will solve the problem.
[www]
listen = /run/php/php7.4-fpm.sock
user = www-data
group = www-data
listen.owner = www-data
listen.group = www-data
pm = ondemand
pm.max_children = 2
pm.process_idle_timeout = 10s
pm.max_requests = 100