Microsoft is coming off its worst quarterly stock performance since 2008, partly due to broader market concern that AI will eat software.