Software stocks have sold off on fears AI could eat into so-called software as a service, or SaaS, business models.