I used tangent space for the normal maps (the green channel is flipped in unreal).
Unflipped normal map looks like this:
I treid the TexCoord node, but it doesn’t help (still looks the same).