Contrary, I can see exactly zero potential for jeopardising national security by any mooderately sane law on whistleblower protection in this area.
All whistleblowing is taking things into one's own hands at the risk of persecution, and here its only more so, given the seriousness of the charges one will face if one's defense on the basis of whistleblower protection ie arguing one acted in the public interest and revealed gross abuse of power fails.
Whatever is at the discretion for the potential leaker to decide, is at that discretion regardless of legal defense opportunities a leaker may have after the fact.
It is simply ludicrous that revealing rampant abuse of power by precisely those tasked with protection of the constitutional order, and precisely at the point where such control is most needed can be a punishable offense in any democracy.
But naturally any such leak needs to be able to stand up in court and satisfy some reasonable criteria of public interest and of having revealed serious violations - nobody is suggesting blatant espionage be legalized ffs.