How did I fix «Failed to start nginx.service - LSB: starts the nginx web server» in Debian 12?

A temporary workaround is a reboot.