Talk to your adviser about switching. It might be case dependent.
What I wanted to add is if you're switching mainly because you did poorly in Malakhov's classes, don't worry too much. It's not like that for all the Matls courses. In any case, if materials has no interest to you explore other options instead of continuing in a program you don't enjoy.
if you have any additional questions, feel free to PM me. Good luck!