BitFuFu swung to a $20.5 million loss as lower customer demand reduced cloud-mining revenue and forced changes across its operations.