George Russell was forced to take evasive action in his Mercedes to avoid a collision with McLaren's Oscar Piastri in second practice.