The duplicate preset defines NAME twice. EnvCheck records both line numbers rather than claiming one value wins.

Every occurrence participates

Reporting only the later line can hide the origin of the ambiguous assignment.

Duplicate detection needs no values

The key and line positions fully describe this structural problem.