As Bitcoin mining expenses surge, operators are turning to AI to navigate rising costs and market volatility.