The deal will involve NYDIG taking ownership of miners, with the aim to lessen chances of a bankruptcy.