You can't prevent this incident, this job is for the exchanges and other platforms that are offering services. What can we do right now is to store most of our crypto's on a safe vault like hardware wallet.
If you don't have that, then install those wallets that has private keys that you can hold to have control to your funds.
yes, thats right, the exchange really need a great cyber security to make the platform safe
about our assets, all we need to do is keep our assets safe,
so, keep your crypto in the safest place in your home,, maybe a hardware wallet is very good choice