This was a possible suspected cause of the incident (see parent ticket or incident documentation), but turned out to be wrong. Nevertheless, it’s probably not a good idea to ask the WikiPageEntityDataAccessor for an unlimited number of revisions – let’s limit it to some number. It can be fairly high (perhaps 1000?), just make sure it’s not absolutely ludicrous. If the entity ID set is too large, just disable caching for that entity. (And probably log somewhere.)
Aside – I sure hope we’re deduplicating the entity ID lists somewhere?