Qemu packer build failing due to unsupported machine type

ERROR: Device isa-fdc is not supported with machine type pc-q35-rhel8.6.0

Qemu packer build for windows 2022 server with efi boot enabled is throwing the following error when the Machine type is specified as q35 in the packer build.

Using Rockey 8 server to build the windows packer images.

Getting Guest has not initialized the display error if the machine type is not specified in the packer build.