There are about 25,000 rows in the revision table in production databases that have rev_page set to 0 (P28505 has per-wiki counts).
These cannot be accessed (at least not in the normal ways), as they aren’t connected to any page, but they can cause production errors like T309151. It should be investigated how they came to be (it’s especially interesting how unrelated the number of broken revisions compared to the wiki size is), they should be cleaned up, and maybe a foreign key constraint should be introduced to prevent them from being inserted in the first place.