If it is because there are not enough credits for elective courses, please take more courses quickly. If it is a compulsory course, you can only retake the exam and pass it. You can have a good relationship with the teacher in the exam part, but it is inevitable to retake the exam because the credits of compulsory courses cannot be filled with the credits of elective courses.