fix(vitest): render non-Error causes from env setup so the actual diagnostic is not dropped (#10567)