Hi @Ashwan ,
Please add –e parameter in bcp command line.
-e err_file
Specifies the full path of an error file used to store any rows that the bcp utility cannot transfer from the file to the database. Error messages from the bcp command go to the workstation of the user. If this option is not used, an error file is not created.
If err_file begins with a hyphen (-) or a forward slash (/), do not include a space between -e and the err_file value.
As Olaf mentioned, the bcp will automatically exit when there is an error.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".