Is this Mac for your business or just personal use?
If for business I'd get the Mini M4 Pro 14 Core CPU with 48 GB of RAM and a 1 TB SSD storage. I'd also get a fast external 1 or 2 TB SSD from OWC (MacSales.com). They are considered the premier 3rd party hardware supplier for Macs.
If for your personal use you can go with the 10 core Mini with 24 GB of RAM and a 1 TB SSD. The recommendation of an external fast SSD is the same.
I have a 10 Core Mac Mini M4 with 16 GB RAM and 1 TB SSD with a 32" LG 4k monitor. I can edit a 525 Mb Photoshop file with minimal lag, the most coming when applying the Blur tool. The same tool used on a 335 Mb file has no lag.
On normal sized files, i.e. 5 Mb to 15 Mb there is no lag observed.
Just some food for thought.