TSMC and SK Hynix are expanding their custom AI chip and memory businesses as Amazon, Google and other tech giants develop alternatives to Nvidia.