Switching from Spanish to Mandarin for sophomore year of high school

I wouldn’t recommend it unless you hate spanish/the spanish program at your school is bad/etc
I know people who switched languages in the middle of high school because the Chinese and German classes were discontinued and they didn’t want to take them online or at a community college. They weren’t hurt that badly, but ultimately your language skills will be stronger if you take the same language through high school