TSMC has been caught in the crossfire of US-China tensions over trade and technology.