One possible cause is an invalid character in the field used to import an ID.

For example, see the screenshot below where a constituent import selection where the Lookup ID is mapped to the Constituent ID column, which has an invalid character in line 5.

Example of an invalid character which could cause an error