I have assemblies made up of parts imported from STEP. Quite regularly when I open assemblies, the constraints that point to components from a WWTP turn red because these entities are no longer found. I always point to the same rooms. The phenomenon is not repeatable, it happens roughly 1 in 2 openings.
To put it in context, I've been a SW user for several years, but I just changed companies and are just switching to SolidWorks. I had never had this kind of problem before (it must be said that I had an excellent administrator in the person of Flegendre...).
As @s4kuj0 said, the problem does not come from the parts of the assembly but from the WWTP!
It is therefore necessary to check with the command "import diagnostic" or tools/check that there are no defective faces that are recalculated when certain openings.
Indeed, I opened a few rooms on which the constraints were jumping. In the Feature Manager, there were no errors on the body functions, but in the diagnostic function it appeared in yellow. But some parts that cause problems do not have errors even in the diagnostic tool!
As for the quality of the STEP, I get the data from SolidDesigner!
I have the same problem with step files. Even with a diagnosis where there is no error. The best solution I have found to prevent the constraints from turning red is not to rely on the faces of the part but on the original drawings to put the constraints.