After modifying the stop loss of the second trade, calculate the distance between the new stop loss and the entry price. If that distance is less than or equal to -10 pips (i.e., SL is more than 10 pips away in loss), close the second trade.
You can use "For Each Trade" block with Skip every "n" trade = 1 — this will select the second trade.
Then, use "Pips away from Stop Loss" or "Pips away from Open Price" to calculate how far the stop loss is from the entry.
If the pips from SL > first target (e.g., 10 pips), use a "Close Trade" block to close the second trade automatically.