The Hardware and Software Specifications page for Unreal Engine 5 states the following:
Performance Notes
This list represents a typical system used at Epic, providing a reasonable guideline for developing games with Unreal Engine 5:
Windows 10 64-bit
64 GB RAM
256 GB SSD (OS Drive)
2 TB SSD (Data Drive)
NVIDIA GeForce RTX 2080 SUPER
Xoreax Incredibuild (Dev Tools Package)
Six-Core Xeon E5-2643 @ 3.4GHzIf you don’t have access to Xoreax Incredibuild (Dev Tools Package), we recommend compiling with a machine having 12 to 16 cores.