When this happens, you most likely have an empty last line in your CSV. This can cause problems.
Make sure your cursor is on the last line, AFTER the last character. Then save the CSV.
Note: Some IDEAs might add a last empty line due to coding standards.