Leaving a team after the first half of the race will stop you from getting the rewards.

This mean that if the race last 10 days, if you change/leave team after the 5th day you will NOT get the Team reward at the end of the event.
You will still be able to contribute to the other team you joined for the progression of the Race and get the Individual Reward if you manage to qualify with your individual score.