Manual:$wgSVGMetadataCutoff

Details
Let X = the value of this setting. If the file size (in bytes) of a given SVG is greater than X, only the first X bytes of the SVG file will be read by the metadata extractor. This is to prevent excessive resource consumption by having to load large SVGs into an XML parser.

Default is 262,144 bytes (256 KB).