I think it doesn't matter if I study for one more year. It is important to get a bachelor's degree certificate.
If you fail the specialized course, you should be able to communicate with the teacher. After all, they are all teachers in your own department. I suggest you communicate with the teacher first, clear four courses first, and then communicate with the dean to see if you can clear another course. If you can't, you can only study for another year.
Whether you study for an extra year or not, getting a degree is the most important thing.