It seems that the reference to TargetMetaData.dat
was introduced by this commit: UBT: Fix engine failing to build on startup when a project module is … · EpicGames/UnrealEngine@104cf9d (github.com)
I’ll try to build its parent d2a825
and see if the problem is gone.
EDIT: d2a825
built successfully.