OK, your OC EFI doesn't look bad, but there are a couple of issues that aren't right.
- First, is your use of iMac20,1 SMBIOS in a system that lacks an APU/IGPU.
- The iMac SMBIOS is only meant for use when an integrated GPU is present.
- This is not the case in your system, you have a discrete GPU with no APU present.
- So you should be using either the iMacPro1,1 or MacPro7,1 SMBIOS.
- Second, is your USBMap.kext is not correct for your Gigabyte 570X motherboard.
- You have 7 x ports set as Type-C, when your motherboard doesn't contain a single Type-C port or motherboard header.
- These 7 x ports are spread between the XHC1 and _SB.PCI0.BXBR.BYUP.BYD8.XHC0 USB controllers.
- 4 x ports should be set as USB3 (3) not Type-c+sw (9),
- 3 x ports should be set as Internal (255).
Your motherboard has the following USB ports available.
Integrated in the CPU:
- 4 x USB 3.2 Gen 1 ports on the back panel (8 x ports total)
Chipset:
- 4 x USB 3.2 Gen 1 ports available through the internal USB headers (8 x ports total)
- 6 x USB 2.0/1.1 ports (2 ports on the back panel, 4 ports available through the internal USB headers) (6 x ports total)
When setting your USB ports you need to follow this line of thought.
- Any port served from a USB3 physical or USB3 motherboard header should be set with the connector type USB3 (3), including the USB2 virtual ports.
- Any physical USB2 port (Black Tang on the back panel) should be set with connector type USB2 (0).
- Any port served from a USB2 motherboard header should be set with connector type 'Internal' (255), not USB2 (0) and definitely not Type-C+SW (9).
Your USBMap.kext should contain the following ports:
- 16 x ports set with connector type USB3 (3)
- 2 x ports set with connector type USB2 (0)
- 4 x ports set with connector type Internal (255)
- 0 x ports set with connector type Type-c+sw (9)
Your USBMap.kext is missing one port from the _SB.PCI0.BXBR.BYUP.BYD8.XHC0 Usb controller - port SS03. This is fine if you are not using it.
Another issue is that your USBMap.kext is set for use with a system that uses the MacPro7,1 SMBIOS, not the iMac20,1 that is currently in your config.plist. So the kext won't work with your current setup.
Fixing these issues may give you a better chance of booting macOS Sonoma.
I would also suggest you add the ResetNvramEntry.efi driver to your /EFI/OC/Drivers folder and your config.plist. As you will need to use it before you boot with your revised OC setup, using the MacPro7,1 SMBIOS.
To use this Driver once you have added it to your OC setup, simply press the Spacebar while on the OC boot screen. This will unhide the Tools and drivers present in your OC setup, among which should be the ResetNvramEntry.efi icon.
This will simply wipe all existing NVRAM entries and automatically reboot the system. So when it next boots it uses the NVRAM entries in your revised setup, not the old and possibly incorrect settings.