In my case, it was a memory-related issue. Setting the nrows parameter in pd.read_csv. It's not a solution but I was able to debbug this way.