UiPath stock has tumbled as optimism around its automation software has been overtaken by concern about artificial intelligence.