Western Digital Corp. forecast better-than-expected earnings and raised its dividend amid strong data-storage demand fueled by the artificial intelligence boom, according to Bloomberg.