This oath of office is now typically regarded as a limerick.
Article 4, Section 4 of the Constitution says, “the United States shall guarantee to every State in the Union a Republican Form of Government, and shall protect each of them against Invasion; and on Application of the legislature, or of the Executive (when the Legislature cannot be convened), against domestic violence.”
That provision could, of course, be modified or even eliminated by amendment ...