Well DeFi is not the first program in crypto where people lose money so in my opinion developer should be more security conscious and if i were investors i would avoid using a cenrtalized platform and leaving my assets there. As this is not very safe . Hackers have been doing their ugly jobs of stealing people's assets even before the birth of DeFi so we should just continue playing safe DeFi on its own is not the problem here.
DeFi is called Decentralized Finance.
And if you are saying that you'll be avoiding the centralized platform. How about these platforms that are not centralized yet they were still able to be hacked? although your advise of not keeping your assets there is right.