Hi Haan,
I did a google search for your error and found a post saying that it is a result of the path name being too long.
BUT, since 5.2 preview 1 was released, building from source is not necessary. 5.2p1 can be downloaded through the Epic launcher (click the yellow ‘+’ next to “Engine Versions”)