It keeps telling me there's errors and mistakes in the output that need to be corrected all the time

I keep getting messages like this in the AI that page elements are wrong or something I don’t understand how to fix this

Your response has following errors. Please correct these mistakes and output the corrected response (re-output all <pc_*> commands from the last message, including those without errors):

  • Element with pgid 10232 is not found on the current state of the page. Use updated pgid if you updated or replaced this element.