Limit size of global template in Confluence?

While working with Confluence’s templates. I have noticed that when creating samples larger than 2MB in size, the confluence fails as shown in the image. Is there any document that clearly stipulates the size limit of templates?
Thanks
image (38)