Module error that appears when using more than two projects

image

When I manage project A and run project B, a module error appears and I need to rebuild UE4 in VS. After managing project B, even when project A is run, an error appears and builds UE4 again.

The two projects were built on different engine versions and are currently being used together in version 4.26.2

Every time I change a project, I rebuild it for about an hour. I don’t think this is normal. No workaround was found. I need a solution.

As an aside, when testing on UE5 after using UE4, you have to rebuild every time you run it. I have no idea whether it is an engine problem or a VS problem, where to start tracking and solving it.