TSMC signals caution over its 2027 outlook despite record profits, as strong AI demand faces economic uncertainty and rising costs.