The shares got caught up in the artificial-intelligence panic after hitting a record high earlier in the day.