Shopify theme file has a 256kb limit, which can be exceeded very quickly under certain conditions. My suggestion for various files that go into a page or section is to upload them into Shopify's backend instead of a theme file and allow to link them to the page builder easily. For example, recently, I faced an issue where the SVG size can be a max of 4kb. However, if uploading into the Shopify backend and linking directly with HTML code, the element can be of any size. Thanks.