Unreal Engine Shader Compiler not working or taking too long

Hi,

It takes over 1 hour to compile basic shaders for UE4 (4.25.4 or 4.27.2) in MacbookPro 2020, system specs:

Processor: 2.6 GHz 6-Core Intel Core i7

Memory: 16 GB 2667 MHz DDR4

Graphics: AMD Radeon Pro 5300M 4 GB

What am I doing wrong?