Manual:$wgExportMaxHistory

Details
If set nonzero, Special:Export requests for history of pages with more revisions than this will be rejected.