Mounting concerns over massive AI spending and the potential to create an “AI bubble” have fueled weeks of choppy tech stock trading.