@Joanne Tsai - I would find a local person who can help advocate for you asap - whether that’s your agent or another Airbnb host who you offer to “cohost” your house or pay outright. There are “smoothers” - people who help businesses… Did anyone setting up your house tell the neighbors you plan to str it? Sounds like a picky neighbor if you say you listed the house mid April and the code violation came shortly after, before you even had any parties or cops. (Make sure to set up informed alert for post mail.). This person must also be well connected for the mayor to care.
If you cannot get the str to work, it seems like you may choose to sell. (Staging furniture included!)
Depending on your proximity to the bases and the size of your house, I would consider doing a “master lease” with bedroom rentals (let’s say $700-1000/mo per person x 4-6 bedrooms) or month to month corporate or travel nurse rentals (furnished finder) so you have the best of both worlds. If you do room rentals, having a long term “house guardian” type responsible person can be useful. The avatar of your target tenant is a solo working professional.