The A.I. boom has propelled the South Korean tech giant’s earnings, but its shares sank as investors had even loftier expectations. Share