What exactly could the federal government do about it? Force the states to nominate electors by some other process? Toss out the states votes? I’m not concern trolling I honestly can’t come up with a response that doesn’t seem like a disaster.
> What exactly could the federal government do about it? Force the states to nominate electors by some other process?
Yes, with:
> Toss out the states votes?
...as a fallback.
That's actually how the norm of "have a vote of the people in your state with the actual voting on, or completed by, the standard 'election day', and assign electors by a procedure that exists in law prior to that election" rule works. Its a federal law directing what states should do, and threatening that their electoral votes might be disregarded when the electoral vote count occurs in Congress if they don't comply.
The problem is what happens if a state that signed the compact decided to break it. Because the federal government considers the compact illegal, it won't enforce it, so any state can break it at will.
It might not actually matter if one state (or several) decided to break the compact, since the trigger condition for the compact coming into effect is that the compacting states have enough electoral votes to guarantee the outcome of the election.
As long as the defecting state had fewer (or the same number of) electoral votes as the aggregate of the non-compacting states that happened to assign their electors in support of the popular vote winner, then the defection would not actually change the outcome of the election.
This may reduce the incentive for states to defect from the compact, as might the possibility of electors from non-compacting states becoming faithless out of respect for the compact.
Strategically I think the NPVIC shouldn't have been presented as a compact between states but as a set of individual pledges to the people of America that each pledging state would act in the necessary way once enough other states had made equivalent pledges. That would mean the states wouldn't have standing to sue each other, unlike in a compact, but it seems that their ability to do that is constitutionally questionable anyway.
I'd imagine the electors, or quite possibly any voter in the state, would have standing to invalidate joining the agreement whether or not it's actually enforced.