Manual:$wgMaxArticleSize

Details
If you encounter the problem that the post-expand include size is too large like e.g.  or, when importing, that the text of the revision exceeds the maximum allowable size, then you can use this setting to adapt the maximum page size in kilobytes allowed on your wiki.

In general it is a preferred approach to split the respective page into several smaller pages.