This is easily addressed. any evidence coming from such an encounter gets tossed. Cop claims they got assaulted by someone and had their hood up or their body cam was malfunctioning or covered up? Gets thrown out and charges stemming from the stop itself are dismissed. Civilian died in that situation and there was a similar problem? All cops on the scene are mandatorily charged with manslaughter - no prosecutorial discretion is allowed and a federal prosecutor is appointed.
A fig leaf of cops acting like gangsters is surprisingly quite easy to remove.