Narendra Modi won his third term as India's prime minister, but his narrow win sent stocks plummeting, and his foreign partnerships could be at stake.