UE4 Crash when opening material editor

I’ve been getting this error when opening any material in my ue4 project, this does not happen on other projects.

[2019.03.02-07.19.17:119][810]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2019.03.02-07.19.17:119][810]LogWindows: Error: === Critical error: ===
[2019.03.02-07.19.17:119][810]LogWindows: Error: 
[2019.03.02-07.19.17:119][810]LogWindows: Error: Assertion failed: ShaderRef != NULL && *ShaderRef != nullptr [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\ShaderCore\Public\Shader.h] [Line: 1618] 
[2019.03.02-07.19.17:119][810]LogWindows: Error: Failed to find shader type FEvaluateSurfelMaterialCS in Platform PCD3D_SM5
[2019.03.02-07.19.17:119][810]LogWindows: Error: 
[2019.03.02-07.19.17:119][810]LogWindows: Error: 
[2019.03.02-07.19.17:119][810]LogWindows: Error: 
[2019.03.02-07.19.17:139][811]LogExit: Executing StaticShutdownAfterError
[2019.03.02-07.19.17:139][811]LogWindows: FPlatformMisc::RequestExit(1)

This error only occured on UE4 4.21.2, on UE4 4.21.1 it worked fine.