Gains for megacap technology stocks fizzle Monday, after earlier helping put the S&P 500 on pace to exit its longest bear-market run since 1948.