If the casino sites are trusted and approved by the government then I have no problem submitting personal information but if the casino site is temporary and weak in terms of security then doing KYC remains a risk.
That's why you must find a trusted casino that can give you a sense of security so they can take good care of your personal data. And don't ever try to play gambling in shady casinos, especially those with many problems they can't or won't solve.
Trusted casinos will provide good security to their members so they can be calm playing there. So by having a list of trusted casinos, you can do KYC with peace of mind and no worries, although nothing is 100% secure when we talk about the internet.