This is a mistake that many new investors make so it is important to store your funds in good wallets when buying and selling bitcoin there is a big risk in exchange wallets. If the exchange is hacked or shut down for some reason then there is a possibility of losing your bitcoin this is because the private key of this wallet is with the exchange and not with you that is why you can use hardware wallets where your bitcoin private key is stored safely offline. If you want to hold large amounts of Bitcoin for a long time then you should definitely use a hardware wallet this will give your bitcoin maximum protection.
This advice is always repeated and I hope beginners take it seriously because it is priceless. Anyone who witnessed FTX and other exchanges that went bankrupt or got hacked will clearly understand the dangers of centralized exchanges and that they are not a safe place to store your funds.
Buying a hardware wallet will only cost you a little, but it will protect you from all potential risks since it provides advanced security features. I personally use Trezor,, and it works well for me.
Another piece of advice is to avoid clicking on links and downloading email attachments.. Many have fallen victim to these phishing emails that appear to be legitimate. You must double-check everything, because even if you have a hardware wallet, being careless or failing to follow essential security measures can still lead to losing your assets.