Hugo crashing on "hugo server", getting "fatal error: pipe failed" (Mac)

Ran into a very similar problem on a large site this solved it: Too many files (only on non root user) - #2 by bep