The error there, if any, is in TUC. YE predates it, so its
version of Klingon peace should take precedence.
But then, YE has got its own
contradictions. Why is the 1701-C engaging the Romulans in battle, when it was outright stated in earlier TNG episodes that Starfleet hasn't had contact with them for a looooooong time?