I mean it's easy to categorize it this way but I think you're ignoring the actual risks for the company. Yes, bankruptcy is a completely legal and typically very useful legal mechanism for restructuring. There's nothing ethically or morally wrong with bankruptcy or even having multiple ones in your history depending on the circumstances.
But more often than not, it shows an inability to manage ones finances and staying within a reasonable band of spending. With few exceptions, bankruptcies are typically avoidable. To quote the word risk in the manner you did diminishes the real fact that you had a finance job and had recently shown that you unable to control your personal finances.
With the litigious nature of the US, especially within the confines of employment law, it's safer for a company in that sector to outright ban employees with major financial issues than to investigate the root causes and make case-by-case judgments on whether a given bankruptcy was "okay."
> My bankruptcy also prevents me from ever having a security clearance again as I'm considered a security risk (blackmail...
This is an accurate and very reasonable concern. It's the whole reason why applicants for every sensitive job from local part-time police officer to CIA agent have their personal finances investigated. If someone has 1.5x their yearly salary in high interest debt it's going to be much easier for a malicious actor to control them.