It is also possible to change majors, but the rules for changing majors in each school are different. I suggest you refer to the student handbook of your school, that is, the booklet issued by your school when you first entered the school, which contains detailed instructions on majors and repetition.
Of course, you can also choose to repeat. If you re-learn, you can re-learn the failed subjects, but it will generally conflict with the sophomore courses. But if you want to learn, you can still make up for it.
Or you can choose to take the postgraduate entrance examination and then get into your favorite major.
I suggest that you should calm down and sum up well, find a way, and don't let trivial matters interfere with your self-study and growth. After all, students' main task is to study.