The DoD has its own brownie recipe and it’s 26 pages long Once with a stun laser at the beginning of New Hope and again at the Battle of Endor.
Other than that moment, they have no problem shooting Princess Leia. You miss shooting a princess one time - a princess who is also your boss’ boss’ boss’ boss’ daughter, who your orders are to capture alive, and needs to stay alive so the tracking device can lead your moon-sized planet destroyer over the entire enemy base - you’re forever labeled as having sh*tty aim. Even a former General in the Clone Army, Obi-wan Kenobi, says “These blast points… Only Imperial Stormtroopers are so precise.” Every battle shown with nameless rebel characters, they shoot perfectly fine. The first moments we see them they can gun down the rebels on the cruiser with ease.
And the most commonly attributed trait among the Stormtroopers is their terrible aim.