With photoshop it works fine. In illustrator, I tried but get error

Tried manually add script but that didn't help either. With Photoshop I didn't have any problems.
Also, I downloaded character sheet on freePik and everything is grouped, and subgrouped and so on. Somewhere I read that it should ungroup for better use. Is that true?