Various factors have weighed on tech stocks this year, including investor unease over Trump's tariffs and AI spending.