I think you’re being too technical in your reading of the treason clause. When the Constitution refers to the “United States” and “their enemies,” that does not mean that two states agreeing that a group of people are invaders means that those people are “their enemies,” and that any support for those people is treason. The “United States” does not mean two or more states that disagree, it means the Union.
Think about the logical extension of your argument. Your argument essentially gives two people (the governors of two states) the power to declare war. That is contrary to Article I’s provision granting Congress the power to declare war, raise armies, repel invasions, etc.