The main threat to the US is dissolution of the democracy, but I think even in that case there would still be strong (maybe even stronger) support for defense of Taiwan because it's an existential issue for the US. For China to invade Taiwan with impunity would dissolve all American credibility in the Pacific and the ramifications of that are significant. It also would kick the US out in terms of trade in favor of China, which would do damage to the US economy.
There certainly is some concern that China may try to engage in a fast, hard engagement with the US and that could cause the US to withdraw, but given the significance of maintaining economic and military interests it's likely that it would just lead to a swift, hard response and from there we're probably in a pretty destructive war. I don't think even Trump or someone similar could prevent a US response here.
For now it is, the interesting question is if the US voter class is ready to go to war again after the disasters of Iraq and Afghanistan - at least from an European POV it looks like wide swaths of the population do not want further overseas engagements and wish to reduce military spending in order to have more money available to fix pressing issues (crumbling infrastructure, healthcare, poverty, high energy prices). Additionally, while Trump himself is a very vocal opponent of China and I think Taiwan will be secured even if the Republicans win either of the next elections, it is nowhere near certain that Trump as a President will apply the same towards Russia or other enemies of the Western sphere - particularly not given strong indications of both himself and his close environment being influenced by Russia, both financially and via "kompromat" rumors (e.g. the "pee tape" allegation).