[Guide] How to flash a modded AMI UEFI BIOS

Hi
I created a modified BIOS for my ASUS H610M-K D5 motherboard by reading these topics:

[help needed] unlock show avx512 menu on asus h610m-a d4 - BIOS/UEFI Modding / BIOS Modding Requests - Win-Raid Forum (level1techs.com)

[GUIDE] [UPDATE] Usage of AMI’s AptioV UEFI Editor + FPT Flash Method - BIOS/UEFI Modding / BIOS Modding Guides and Problems - Win-Raid Forum (level1techs.com)

[GUIDE] Grub Fix Intel FPT Error 280 or 368 - BIOS Lock Asus/Other Mod BIOS Flash - BIOS/UEFI Modding / BIOS Modding Guides and Problems - Win-Raid Forum (level1techs.com)

My problem is flashing this BIOS on the Asus motherboard. I tried to use FPT software, but I encounter error 167.

According to the instructions in the topics, I tried to disable the BIOS security registers (like FPRR and BIOS LOCK). But I was unsuccessful, and the lock register (especially BIOS LOCK) is automatically reactivated.

Can anyone help me to flash this bios on my motherboard?

Thanks