I've narrowed one case down to the problematic sequence of titles:
dumpsgen@snapshot1009:/mnt/dumpsdata/temp/dumpsgen$ /usr/bin/php7.2 /srv/mediawiki/multiversion/MWScript.php dumpBackup.php --wiki=enwiki --full --stub --report=1 --output=file:/mnt/dumpsdata/temp/dumpsgen/badstubs-history.xml --skip-header --start=4169926 --skip-footer --end 4169928 2019-04-06 08:09:13: enwiki (ID 256699) 0 pages (0.0|0.0/sec all|curr), 1 revs (25.5|25.5/sec all|curr), ETA 2020-05-15 09:18:22 [max 891190890] 2019-04-06 08:09:13: enwiki (ID 256699) 0 pages (0.0|0.0/sec all|curr), 2 revs (49.6|915.8/sec all|curr), ETA 2019-10-31 11:53:18 [max 891190890] [13802068f4547aefc7dabdb6] [no req] InvalidArgumentException from line 100 of /srv/mediawiki/php-1.33.0-wmf.23/includes/Revision/RevisionStoreRecord.php: The given Title does not belong to page ID 4169927 but actually belongs to 4169926 Backtrace: #0 /srv/mediawiki/php-1.33.0-wmf.23/includes/Revision/RevisionStore.php(1820): MediaWiki\Revision\RevisionStoreRecord->__construct(Title, User, CommentStoreComment, stdClass, MediaWiki\Revision\RevisionSlots, boolean) #1 /srv/mediawiki/php-1.33.0-wmf.23/includes/export/XmlDumpWriter.php(327): MediaWiki\Revision\RevisionStore->newRevisionFromRow(stdClass, integer, Title) #2 /srv/mediawiki/php-1.33.0-wmf.23/includes/export/WikiExporter.php(485): XmlDumpWriter->writeRevision(stdClass) #3 /srv/mediawiki/php-1.33.0-wmf.23/includes/export/WikiExporter.php(445): WikiExporter->outputPageStreamBatch(Wikimedia\Rdbms\ResultWrapper, stdClass) #4 /srv/mediawiki/php-1.33.0-wmf.23/includes/export/WikiExporter.php(269): WikiExporter->dumpPages(string, boolean) #5 /srv/mediawiki/php-1.33.0-wmf.23/includes/export/WikiExporter.php(154): WikiExporter->dumpFrom(string, boolean) #6 /srv/mediawiki/php-1.33.0-wmf.23/maintenance/includes/BackupDumper.php(288): WikiExporter->pagesByRange(integer, integer, boolean) #7 /srv/mediawiki/php-1.33.0-wmf.23/maintenance/dumpBackup.php(81): BackupDumper->dump(integer, integer) #8 /srv/mediawiki/php-1.33.0-wmf.23/maintenance/doMaintenance.php(94): DumpBackup->execute() #9 /srv/mediawiki/php-1.33.0-wmf.23/maintenance/dumpBackup.php(138): require_once(string) #10 /srv/mediawiki/multiversion/MWScript.php(100): require_once(string) #11 {main}
The underlying issue has always been there but the exception causing stubs on some projects to fail is new.