When cooking the DDC key for a material layers parameter set may become invalid which causes issues reading/writing to the global material shader map and can lead to a crash. See original UDN post for a detailed explanation.
Create a material using material layers feature.
Cook task may crash.
There's no existing public thread on this issue, so head over toAnswerHub just mention UE-64850 in the post.