Thousands of students across the UK have been affected by a major system error within the Student Loans Company (SLC), which resulted in their loans not being written off when they should have been.