too many open files for a Golang server running behind Caddy

This is a problem that can be solved by modifying some parameters of your system.

I recommend that you follow the following thread: Too many open files