Google Sheets filter has mismatched range sizes example- Filtering student names and grades- Before correcting mismatched rows

A Google Sheets "FILTER has mismatched range sizes" example- Filtering student names and grades- The formula displaying an error message before correcting the mismatched rows