The ONLY way you avoid paying taxes is on a buy and hold. End of story.
And that does you about zero good because sooner or later you sell for a profit ideally. Taxable event.
Selling for a loss decreases taxable liability. But who is in this to sell for a loss?
BUT ... There is a difference between long term capital gains tax and short term capital gains tax. Short term is basically your income tax rate. Long term might be about 10% ish less. Long term rate is on holdings for a year or more.
Mining in dire times .. Your hardware costs will offset any taxes that you'll ever pay, depending on the situation. You pay the same tax as you do on your W2 income. Whatever tax bracket you happen to fall into. Mining, i'm just assuming that you were not a moron and started buying hardware at 2X msrp. Otherwise, you're like me ... Don't really give a fuck about the downturn just yet. Pay your expenses out of other income, and keep going. Who the fuck cares? People say, oh I have bills to pay .. Pay them with your fucking real job. And pay for this hobby out of income from your real job.
If you can't afford to pay the overhead out of your own pocket, you shouldn't be mining to begin with.