To be fair, these countries are extremely outnumbered by the number who voted yes on the resolution so you can't say that all non-NATO members are seeing it the same way when it comes to this particular war. When the only people who voted no are North Korea, Belarus, Eritrea, and Assad's Syria are voting against it, that's not the group one would in any way want to be seen to be similar to.
It's understandable why Indians see NATO in a negative light but countries that are successful shed the victim/loser mentality and look forward to advocate for their values. Countries can't afford to be stuck airing grievances from the past in such a fast-changing world. At the end of the day, the Russians won't stop China from annexing more Indian land, this is just a fact. Russian weapons are going to be surpassed by Chinese weapons in the long run, so relying so much on the former for military support is a bad idea.
When it comes to Ukraine, this is a case of democracy vs. autocracy and if the latter is unopposed, this will embolden other autocracies to initiate military actions to achieve political objectives. As the world's "largest democracy", India will at some point have to learn how to advocate for these values, even if the current reticence to call out Russia is understandable due to the economic and military factors. Then again, for all the talk about American democracy being in danger, India is in a much worse position when it comes to potentially losing its democracy so it may not have to worry about advocating for this system in the future anyways.