Unreal 5 flips Normals of some meshes when I press play (It was working in UE4)

I’ve tried using both the Movie Render Queue and the legacy rendering, but both have the same issue on UE5 and I can’t figure how to solve it:

UE4:

UE5:

The material is opaque, nothing has been changed from the previous project

UE5 editor preview:

UE5 in game:

The issue was the LocalPosition node that changed in UE5.0, I changed the output pin to Instance Local Position and the issue seems disappeared.

image
image
image