A CSV written on Windows can be read as a single line by Linux tooling. Convert CRLF to LF here and that class of bug disappears.
Newlines inside quoted cells are preserved; only record separators change. A file with mixed endings is classified by the majority.