Taiwan Semiconductor Manufacturing Co.’s updated capital spending forecast could have been worse as smartphone demand dries up.