The deal comes amid tough times for miners, which have seen margins squeezed amid higher energy costs and lower bitcoin prices. Several, including Core Scientific, have filed for bankruptcy.