Taiwan Semiconductor Manufacturing Co. is considering building a third plant in Japan that would make advanced 3-nanometer (3nm) chips, according to people familiar with the matter, potentially turning the East Asian nation into a major global chipmaking hub.