True, I was at TSMC FAB 12 when the story broke about Altera defecting to Intel. Morris Chang did in fact announce it over the PA and said it would be a learning experience. I do not think TSMC could have prevented this however, it really was about Altera not being able to compete with Xilinx on a level process playing field.
I worked with Altera down to 40nm. Altera and TSMC were closely coupled. TSMC used Altera FPGAs to ramp processes and Altera was first to a new node which was a big deal in the FPGA business back then. Xilinx had a similar relationship with UMC, in fact, a complete floor in UMC HQ was dedicated to Xilinx employees. It really was like a JV for process development. Unfortunately, Xilinx and UMC fell behind at 65nm and 40nm so Xilinx jumped to TSMC at 28nm. In fact, Xilinx beat Altera to 28nm silicon. It was a very wise move for Xilinx, absolutely.
The mistake TSMC made was providing a level playing field for Altera and Xilinx and treating the competitors equally thus ignoring the previous close relationship with Altera. It was the Morris Chang way, be a friend to all. Xilinx was clearly beating Altera at the silicon level, Xilinx had one of the best foundry teams I have every worked with and they still are today. Altera had no choice but to pivot to Intel and the rest as they say is history. Intel ended up buying Altera for a premium and Xilinx went on to dominate the market in partnership with TSMC.
The transition from TSMC to Intel was a big challenge for Altera. I still had ties to Altera and was told that the first DRC manual was redacted and unusable. The PDK was not good for foundry customers either. This caused delays for Altera and Xilinx sped ahead. I heard of similar problems with the first foundry customers Intel pursued back then. It is now said that Intel Foundry failed due to not being customer centric, which is true, but in reality Intel did not have the necessary tools (PDKs) and ecosystem to be successful in the foundry business.