refactored get_problematic_rows_per_problematic_col for array friendliness