Update invalid environment variable handling to actually fail rather than auto-correct.