David is first and foremost a Christian minister. He struggled with why he was accused and convicted of Sedition. There is a long history of accusations of Sedition in Christian history.
Jesus: Pilate hung a placard over Jesus' head on the cross that read, "The King of the Jews." This implied sedition. There was only one king in that region who was placed there by Caesar. To oppose this king was to oppose the emperor.
The Apostles Peter and James: John Calvin (premier theologian of the Reformation) commented that Peter and James were arrested and killed for Sedition.
The Apostle Paul was on trial before Felix. He was accused of Sedition by the Jews. The lawyer, Tertullus, represented the Jew's case against Paul. Tertullus described the accusations against Paul saying, "For we have found this man a plague, one who stirs up Sedition [as in Latin, Seditiones or in Greek, στάσεις, Insurrection] among all the Jews throughout the world" (Acts 25:5).
Many pillars of the Christian faith were falsely convicted of Sedition. David is a minister of the Gospel of Jesus Christ, so is it surprising that he too would be persecuted falsely with a conviction of Sedition?