Western Digital and Sandisk are rising as the artificial-intelligence trade regains momentum.