Dude, why do some people abort a game immediately after seeing their opponent is Indian?
Chess.com could have an immediate chat filter, which immediately awards points for rating once opp resorts to spamming
There is a false stereotype which alleges that Indian players are more likely to play "dishonestly" than other players are, which really brings out the xenophobia in some people. In reality, India simply has a lot of people, so of course it might seem like that, but it's simply a coincidence.
Look, if people are being mean to you, simply don't allow the chat. You can restrict chat/DMs in settings to only allow your friends to chat with you, or nobody at all. I have been called nasty things when I flag opponents down a queen, but it happens. Don't let them get to you, just block, report, and move on.