Markets in South Korea and Japan slid after a rally in tech stocks in recent weeks.