You WILL be charged for not giving the PIN to your phone in an investigation. It’s a strict liability offence which means there’s no legal defence.
The only realistic protection here is a “decoy” partition, a partition that provides access to a separate installation of the OS. That gives the device owner plausible deniability that their real system even exists.