Things like this can be (and are, in my experience) handled under UCMJ Article 134:
“Article 134. General article:
Though not specifically mentioned in this chapter, all disorders and neglects to the prejudice of good order and discipline in the armed forces, all conduct of a nature to bring discredit upon the armed forces, and crimes and offenses not capital, of which persons subject to this chapter may be guilty, shall be taken cognizance of by a general, special, or summary court-martial, according to the nature and degree of the offense, and shall be punished at the discretion of that court.
10 U.S.C. § 934”
Kind of a catch-all that covers all sorts of dumbassery
All my years of dedicated law enforcement service in that armpit of the world Cook County, IL, tells me that in this case that UCMJ Article will be interpreted in the defendant’s favor.