terminating debug information emission for enum 'enum' with member 'member'
A record in a PDB file can be no larger than 64K. The size of an enum in your code, along with the use of /Zi, resulted in a PDB's record size greater than 64K. You can either reduce the size of the enum or break it into two enums.