I don’t pretend to understand the nuances of your project, but if I were you I would find a way to stuff everything into a JSON, TOML, or YAML file that sits in the data folder, and iterate through with a range site.Data.xxx.
See https://gohugo.io/templates/data-templates.
You might have to invest some time to figure out how to automate the creation of the data file, but in the long term I suspect this will pay off in efficiency and error avoidance.