To change sides is something wrong (6)
I believe the answer is:
defect
'to change sides' is the definition.
(I've seen this before)
I don't understand the rest of the clue.
Can you help me to learn more?
(Other definitions for defect that I've seen before include "Desert - flaw" , "go over to the other side" , "Leave the country" , "weakness" , "Blemish, fault" .)