If you are importing a CSV file, make sure to specify that you are importing a delimited text file and not a Parquet file. You can use plain text editor or a CSV viewer to ensure that it is correctly formatted especially for the beginning and end of the file to make sure there are no unexpected characters or incomplete rows.
I usually use this : https://csvlint.io/
If your CSV file is particularly large, I would recommend splitting it into smaller chunks and importing them separately at least you will be able to know in which part it is not correctly formatted.