Cooking Failed: logshaders: metallib failed with code 1: LLVM Error : SF Metal SM5


I got this error in log when Cooking and Packaging for Mac, it has something to do with Metal but I can’t find what exactly.
I tried enable/ disable Mac metal desktop render with AND without tesselation in the project settings but it did not change anything.
Does it has something to do with Xcode ? I can’t find answers anywhere. Where should I even start looking?

The game is a 3D runner working with blueprints, 2800 actors, many textures (optimized) and very few added lights. Let me know if you need more infos.

Log text is attached.

I run UE 4.22.3 on iMac Mojave, processor 3,6 GHz Intel Core i9, memory 72 Go 2667 MHz DDR4, graphics Radeon Pro Vega 48 8 Go

Thanks a lot !