Although this has not happen to our exchange where we put our funds for a long time, this should prove that its not safe to be there for months or years, you have to secure your money, or tokens/coins to your hardware wallet, or electrum wallet etc since you have full control unlike CEX.
You don't have to wait till any of these happen to your bitcoin abd you loose everything before you make a step to make use of the best way to stay safe, considering security and privacy here are the best recommendations you can have as means to store your bitcoin for your safety.
Here are the recommendations for wallets security and privacy
Bitcoin CorePassport ElectrumSparrow Bluewallet Samourai WalletUsing an exchange is not safe enough for you except you only uses such to exchange your coins and return your capital or assets back to you personal wallet, you also have to learn how to keep your private keys safe.