return explicit error when using COPY TO