bug with automaterial showing different colored squares where the layers should be

everytime i use my automaterial on a map or project this happens and different colors show up how can I solve this problem in unreal 5?