chore(codecs): centralize events_dropped emission for batch encoding errors
#25199
+54
−60
events_dropped emission for batch encoding errors
#25199