Not an accountant and not your accountant but as someone who ran a small business:
If you run a small business which grosses $X,000 per month, you will a) find that that is not that rare and b) benefit from keeping appropriate records of your expenses, including electricity and depreciation of expensive equipment, such that you can claim them on the tax return for your business each year.
You might choose to swap assets of the business directly for pizza but this is, in general, not a good decision relative to swapping them for money and money for pizza.
Your cost basis in intellectual property is typically the marginal cost to produce it. You can run the question of how exactly to bookkeep it past your accountant, but the profit of a mining businesses with $8k gross revenue and $2k of expenses per month should be $6k.
If you believe your mining business to have insurmountable challenges in bookkeeping at the scale you’re operating it at then maaaaaybe you should hire professional help or exit the business.