Hello I am a licensed attorney here to help you with your question, please review my response and do not hesitate to ask for clarificatiON.
When you file your tax return, you would be able to offset your IRA income liability, with any losses you have.
Be aware that under IRS rules:
Your capital loss carryover from prior years can only offset $3,000 of ordinary income each year.
a business loss does not directly offset the taxes on an early IRA withdrawal, a loss may have the net effect of negating any additional taxes generated by the early withdrawal. IRA withdrawals are considered ordinary income whether they are early withdrawals or not. The amount distributed is reported on Line 15a of Form 1040, where it adds to the taxpayer's total income. The profit or loss from a business is reported on Line 12 of the same section of Form 1040. In other words, if the business loss is equal to or greater than the income created by the IRA withdrawal, then the loss will offset the IRA taxes. The penalty for an early withdrawal is reported on Line 58 of Form 1040.
All your losses and credits would reduce your IRA tax liability.
The current losses to be filed would not be from a business but from 50K cost basis bank stock on the bank that is out of buiness and has zero current value.
If you have a 50,000 cost basis on the stock that would certainly reduce your tax liablity, however dollar for dollar is not certain as it reduces your overall AGI, and then your taxable income would then be lower.