The question is, can Taiwan get there? I doubt it, and if it tries and fails to reach the threshold, it will only provoke China (or more specifically, the Chinese leadership).
Limited nuclear war is an automatic loss condition for Taiwan, but it's only very costly to China. I believe nuclear weapons in Taiwan is one of China's stated red lines that will trigger war.