I openly said you can take issue with the data collection, but the link makes clear they're talking about specific commercial pilots. My understanding is that the cpl and atpl do not expire. I have no idea how many of those people are in the workforce anymore, or in aviation at all, much less the specific segment in question.
Even if you took that stat and spread it over all of aviation it'd still be more than cops, but just for fun here's an article using data from the bureau of labor and statistics. They happen to link pilots with flight engineers, but the pattern still holds: https://usafacts.org/articles/how-many-police-officers-die-in-the-line-of-duty/
You can disagree with whatever data collection or collation you want, but acting like the meme is misleading seems disingenuous, especially when you consider the brevity of the format.