By funding a known miliary dictator (Pervez Musharraf), for decades, helping strengthen the military rule in Pakistan.
So much for "spreading democracy"
"U.S. prestige was damaged in both nations, in Pakistan for failing to help prevent the loss of East Pakistan and in India for supporting the brutality of the Pakistani regime’s actions"
https://en.m.wikipedia.org/wiki/The_Blood_Telegram:_Nixon,_K...
It was an active decision by the US.
but you dont want any of them to ally with russia or chinnese, ignoring problem also "problematic"
Sure, but one side offers clear benefits over the "ally from hell." (Islamabad, at the very least, has clearly picked a side.)
There are countless ways to be stupid and destructive, especially when you're actively trying to destroy your own country's institutions.