Bitcoin miner CleanSpark posted a quarterly net loss of $29.3 million and revenue of $31.0 million and is exiting the energy business.