So u/stiligFox informed that XMP was broken with modified bios. I confirmed my board had the same issue. Even properly set in BIOS, RAM speeds were showing up default 1333. I found the solution and confirmed it working here's the link for the work around
https://hamac.pl/topic/14107-natywny-zapis-do-nvram-modyfikacje-bios/?do=findComment&comment=136471, they also discuss in the thread to replacing bytes but I don't believe that'll work for every board due to variations, so not recommended.
YOU DO THIS AT YOUR OWN RISK and I AM NOT RESPONSIBLE FOR ANYTHING
Tools used(newer versions may not work correctly):
UEFITool 0.28.0
MMTool Aptio 4.50.0.23
AFUWIN64 tool v3.05.04 can be downloaded from the guide linked below
Open the older BIOS that has the working nvram driver. In my case version 1104.
Search by text and enter nvramsmi, in the messages section at the bottom you can click where it says found in PE32 to go right there.
Select the PE32 image section that is under NvramSMI/Compressed section and Extract body, save the bin file.
Take note of the GUID 842A45A.... we will need this later. You can keep this open for reference and open another window.
View attachment 499331
Now open the latest BIOS in UEFITool in another window, in my case 3503.
Same as earlier search by text and enter nvramsmi. This time we will replace body.
Select the PE32 image section that is under NvramSMI/Compressed section and replace body with the bin you just saved.
After replacing it should look like below. Now save the new image.
View attachment 499332
Open up MMTool, Load Image and select your modified BIOS you just saved. Like I said this sounds redundant but just do it.
Go to the extract tab and scroll down to find the nvramsmi driver, the filename will be missing so using the GUID from UEFI tool you can confirm you selected the correct one.
They will also be in the same order as shown in UEFITool, so you can see NvramSMI is between NTFS and OpalSecurity. Match the GUID to be sure.
View attachment 499333
After you find and select the nvramsmi driver, click the browse and make a name like mmNvramsmi, then press extract, file will be saved
Now using MMTool load your *unmodified* latest bios file. This time go to the Replace tab.
Find the Nvramsmi driver again and select it.
Click browse and select the above mmNvramsmi, and then replace.
Save Image As, and name it how you like. I named mine mod.rom and then use AFUWIN to flash from Windows. USB Flashback won't work since we are saving the rom without the capsule headers.
You can find those instructions to use AFUWIN here
Forum - [Guide] How to flash a modded AMI UEFI BIOS (win-raid.com)