Exchange wallets & online wallets are not safe. There is always a risk when you keep your funds at there.You should use a hardware wallet. It's the best way to keep your funds safe.
I completely agree with you, if we look back, we will see that exchanges may hack, even the most reliable, and find vulnerabilities in wallets.