There will always be some risk, but you can reduce it by selecting a reliable bitcoin exchange and a safe cold (offline) wallet. I can recommend you cex or
https://cexbro.com/ depending on your trading skills and aims. Therese platforms have never been hacked.