Found the issue for max flat generation error