This example reproduces the error with hugo server and hugo server -D (but my main project reproduces with hugo server -D). Files of concern: layouts/_default/home.search.json and content/books/test. I kindly request pointers on why the error is showing and how to resolve it.
$ hugo env
hugo v0.138.0-ad82998d54b3f9f8c2741b67356813b55b3134b9 linux/amd64 BuildDate=2024-11-06T11:22:34Z VendorInfo=gohugoio
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.23.2"
hugo v0.138.0-ad82998d54b3f9f8c2741b67356813b55b3134b9+extended windows/amd64 BuildDate=2024-11-06T11:22:34Z VendorInfo=gohugoio
WARN missing cover image for page .../content/sculptures/sculpture-20.md
# and many more
and set the image field in your dict to “” guess you will have to adjust that
btw - looks like there are no images found, and the test subfolder is not processed
dunno if .Process can fail, but if another with would be nice
using a {{ $page = . }} at the beginning of the range will ease up page specific log output even in nested with statements. so you could combine all the with used in a chain