You cannot avoid DDR5 once you have a box that only supports only that, even if the CPU theoretically supports both DDR4 and DDR5. The SO-DIMM sockets are different for DDR4.
Make sure you read up on how to install the latest Intel microcode to make it behave.Cheers,Franco