Cybersecurity and software names have sold off heavily in recent weeks as investors fretted about potential disruption from artificial intelligence.