Apple has been plenty happy to work with the CCP in the past, so I don't understand how/why this would bankrupt Apple or really even cause them lots of problems.
https://www.techspot.com/news/96291-taiwan-destroying-tsmc-e...
So TSMC would probably become irrelevant in due time if there were strong sanctions against China. That, and the persistent rumour that Taiwan has a plan to literally blow up the fabs if China invades gives us a picture were invading Taiwan is ideological for China, not an economic power grab.
Realistically PRC will glass most of TW defense, start a blockade and leverage continued acess to western semi to try to constrain conflict. It's not like PRC can maintain TSMC without western input. Keeping TSMC running is pretty much the only strategic goal in everyone's interest.