The test is manually issuing moveChunk commands while the balancer is enabled. As a result, it can happen that one of those moveChunk because the balancer is performing another one at the same time.
Proposing to add the assumes_balancer_off tag and disable the balancer when initializing the ShardingTest object.