His motives are irrelevant. He disobeyed orders and is guilty. You don’t get to do what you want, even if you’re an O5.
His motives relate to his perception of the lawfulness of the orders he chose to disobey. His actions were not random.