Canva plans an AI-driven business overhaul affecting 1,271 employees, or 22% of its workforce, as growth slows for the first time in a decade.