I tried to build a moderately sized project with a high number of files copied and compiled by the build. I don't know how this buffer is used:
struct WriteBuf {
buf: [u8; 8192],
len: usize,
}
but it led to panicing halfway during the build. Bumping it to twice the size fixed the panics. Happy to gather more information, but the source tree I was building is unfortunately not public.