Handle syntax errors in COPY