I found an issue showing same error message. However, it does not seem relevant to my sutuation as it originated from building with caddy-ratelimit plugin, and I don’t use any plugins at the moment.
Did you upgrade any dependencies while setting up your project? The problem occurs when you’re trying to build with a newer version of quic-go than Caddy was written for.