Manual:$wgExportMaxHistory

Details
If set to a positive nonzero integer, requests using "Special:Export" for pages with a revision history of more revisions than set with this configuration parameter will be rejected. There is no limit if set to  (default). On big wikis exporting pages with a lot of revisions could potentially threaten operational stability.