Software stocks have been falling sharply this year, amid concerns that artificial intelligence will cripple their respective businesses.