Shopify is to cut almost 1,000 jobs after overestimating the need for workers during the COVID-19 pandemic.