Let me emphasize that I think the strip works fine with an apple, but I think it would be fine and just as funny with any fruit. In this case historical research fails because the fruit has no name!
After the first draft he realised that he had written a book that was stuffed full of great jokes that only he and about six or seven academic Egyptologists would get. So he junked it, watched a load of Cecil B DeMille* films, and based the jokes on what people thought ancient Egypt was like, not what it really was like.
It's a certainly a valid principle and maybe why the viking like people in the "Train Your Dragon" series perpetuates the idea of horns on their helmets (They didn't by 10th C). Some European Celts** had horned helmets over a thousand years earlier.
Actually there is a lot of accurate historical research in the Discworld. The real semaphore at the time of Napoleon wasn't much different to the Clacks and he adds a lot of UNIX in jokes to that, so I'm quite sure that he didn't
completely junk an earlier version of Pyramids. There are "in jokes" in various of his books.
Certainly stories need to use established Tropes and Stereotypes. Personally I think there can be a balance between that and historical accuracy, especially if it's a nasty lie that's being reinforced. Shakespeare often ignored the original endings of stories and certainly had one eye on Elizabeth's viewpoint and the Chief of the Secret Police (Macbeth, Richard III, King Lear legend is quite different).
A character like King Arthur is problematic as most people know only the late versions of the legends after the French got at it. Apart from how dubious ANY version is!
Similarly St. Patrick is problematic. Though he certainly existed most popular stories are very late fiction. Not just the obvious snakes, but the Shamrock story is obvious late fiction by someone that knew nothing about 5th C. Ireland.
St. Bridget is even more problematic.
I try and keep that in mind every time I'm tempted to factcheck the background to a joke.
Though in this case any fruit works as well as an apple. However the apple is fine too.
*Curiously many Hollywood scenes of ancient Greece, Egypt and Romans were based on the paintings of Lawrence Alma-Tadema, who claimed he'd researched the sources.
Including Cecil B DeMille.
https://en.wikipedia.org/wiki/Pre-Raphaelite_Brotherhood
https://en.wikipedia.org/wiki/Lawrence_Alma-Tadema
** There is a theory that the Norse / Germanic / Celt differentiation may be a little invalid. The Norse (Germanic) stories we are familiar with are written over 1000 years later than Greek and Roman (rather biased) accounts of Celts and the oldest Insular Celtic legends may not reflect mainland Europe and could be first written over 500 to 700 years before the stories of Thor and Odin.
Where do we draw the line? Popular consciousness of Norse, Celtic and Asian legends are being created by American comics, TV and Cinema, not even using "what everyone knows" but lazily or deliberately creating their own versions. Often not for artistic reasons. So I will use 8th to 16th C sources and reasonable English translations, not what I've seen in a Graphic Novel or a Video. Much of the texts are public domain on Project Gutenberg, though there are some good modern translations of Chinese Classics, retelling of Norse by Niel Gaiman and translation of Beowulf.
Disney/Marvel are the worst and often pushing an agenda.