Thanks, this worked perfectly for me!
I had to upgrade both Go and Hugo to their latest versions to get things running.
After the upgrade, my project is working fine too — though I’m not entirely sure if the upgrade itself was the key (I was using Hugo: 0.140, Go: 1.22).
Really appreciate your help!