Hi,
Firstly check if there is any BAPI available for the updates you are trying to make via BDC. Secondly, go for first option. Get rid of erroneous data in the file, and then probably you can decide if clean data should be processed or nothing should be processed.
Thanks!
-Vishal