I’ve investigated further and have suspected because of my installation part, I recall having the problem Path too long error also when I’ve installed the engine version 5.1, but not on 5.0(which is the engine version that works perfectly)…
Did the Unreal Header Tool some how called dotnet
with incomplete paths as it’s too long?