Even on the violence front, it's overstated. In 2020, 45 cops were shot to death on purpose, 5 shot on accident, 13 were purposefully struck by a car, and 1 died from an unspecified assault. That's 59[0] purposeful killings out of an estimated 665,280[1] police officers in America, or 8.8 per 100,000. Meanwhile COVID19 killed 221 cops, and various vehicular accidents killed 39 cops. Obviously 8.8 per 100,000 is not great, but it's far from how being a cop is portrayed in popular media.
For a grim comparison, consider the risk of being murdered as a cop to the risk of being murdered as a pregnant woman. A 2005 study connecting female homicide deaths with pregnancy information came to the conclusion that the homicide rate among pregnant women might be as high as 10.5 per 100,000, or about 25% higher than the murder rate for cops.
Given that the estimated domestic violence rate for police officers is 40%[3] and the known link between domestic abuse and homicide[4], a pregnant woman married to or living with a cop might have a higher chance of being murdered by her cop partner than her cop partner has of being murdered on the job.
It does strike me as an awful job though. No disagreement there.
0 - https://www.odmp.org/search/year/2020
1 - https://www.bls.gov/oes/current/oes333051.htm
2 - https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1449445
3 - https://www.theatlantic.com/national/archive/2014/09/police-...
4 - https://www.washingtonpost.com/graphics/2018/investigations/...