Days after a viral essay warned of an artificial intelligence-fueled economic catastrophe, payments company Block said it was laying off nearly half its staff.