Taiwan’s survival is directly connected to that of Ukraine. If Russia is perceived as “winning” in Ukraine, meaning that it annexes and holds significant parts of Ukraine with consequences Russia can accept, then China’s temptation to invade Taiwan might grow ever greater.
However, if Russia is defeated, then the Kremlin’s ability to assist Beijing during an invasion would be dramatically reduced, and it would serve as an example to China about taking big military risks against Taiwan.
Therefore, Taiwan should help Ukraine, because it is in Taiwan’s direct interest to do so. Taiwan needs a soft power strategy to help Ukraine against Russia.