CustomGPT failing to generate large XML artifacts

I created a customGPT to generate XML artifacts that are used to tabularize plain data based on column and row spec. It understands all the elements present in the XML artifacts to be generated, but it fails to generate big files. Please help me find a solution to this