SNOW-3818475: fix RecursionError in test_read_csv_with_infer_schema_negative (#4289)