Tbf China can't really get involved into a high-intensity conflict with India or any other country (assuming they aren't defending Taiwan like the US) until the Taiwan issue is resolved. Taiwan is far too important. Any major conflict may embolden Taiwan to end the status quo.
It is a balancing issue. China needs to ensure India does not have delusions build up enough to begin action to take advantage of any moment they interpret as China being distracted enough for them to patrol into China's side of disputed territories again.
Taiwan ending the status quo means war. It's never been anything other than that. It's something that even the US has respected to not tread over. Any situation where Taiwan ends the status quo means the mainland has lost its ability to effectively bring about armed reunification. Armed reunification is a situation both RoC and PRC want to avoid. Any major high intensity conflict with India will serve to reinforce Taiwan's wariness of changing the status quo. They will not be inclined to think in terms of opportunity like the Indians in that moment. After all, high intensity war with India has many off ramps for both sides. Once armed reunification is set off, there is no turning back. If there were ways to finesse this, Taiwan and the US would have changed the status quo unilaterally.
On the off topic of the Taiwan issue. This is also presented to the West as the chief source of conflict with China. It is to China's advantage to avoid wars and resolving the Taiwan issue should in theory give the western world less reason to oppose China. If it is resolved peacefully of course. Hypothetically if PRC were to support ROC independence, in theory, the western world should then look more favourably upon PRC. In reality, they will never so long as PRC represents a threat to western hegemony and not aligned with their hierarchy and rules of power.
Giving Taiwan up is out of the question for the PRC. Therefore the only path forward is to progress and reform your government, people and country for the better until the time when Taiwan willingly reunifies or failing Taiwanese willingness, be so far ahead of everyone else there is no threat of war.