If PRC actually got into a war with US over Pelosi's visit, there is a high chance that India would also make trouble for PRC at Galwan, taking advantage of the situation anyway. Two front war is still very much in the cards. Only in this case, India would have the initiative. When the possibility of two front war is high anyway, it would be smart to cripple a potential weaker adversary first, eliminate it from the board so to speak. AFAIK, US administration has made pledges to defend Taiwan and US hasn't made similar pledges to India.