CleanSpark swung to a $987 million annual loss as revenue fell 25% and bitcoin output declined, even as the miner leans further into AI infrastructure.