Such fears have simmered for years, but a more emboldened Beijing and a more distracted U.S. are raising the prospect that after Russia’s invasion of Ukraine and Hamas’s attack on Israel, a conflict across the Taiwan Strait is next.