I'll try to cut a long short as possible

I have this Powershell script:
$Pin = ConvertTo-SecureString "xxxxxxxxxxxx (whatever PIN I want to use)" -AsPlainText -Force
Enable-BitLocker -MountPoint "C:" -EncryptionMethod "Aes256"  -Pin $Pin -TpmAndPinProtector
This requires that I go into gpedit.msc and under Computer->Windows Components->Bitlocker->OS Drive, set the 'Require Further Authroization upon Startup' I set everything to 'Allow' instead of 'Demand'.

But I want to automate this by exporting the entire reg file and pasting it into NTLite-> Registry section

However when I do this, I get an error message during the image deployment:

'windows couldn't update the computer's boot configuration' and the entire installation process is aborted.

Even if I deploy this .reg file POST-INSTALLATION, I can see that the registry keys are added to the right section of Windows Registry, this doesn't result in the respective settings change within gpedit.msc (see above). ie the registry keys are not read.

So I would still have to manually go into gpedit.msc and turn on the respective settings. In other words, I haven't managed to automate this process with the .reg file. Can someone please help me?