I do not have this strange behaviour in Unity 6.
How do you retrieve enemyPrefab? If it is a public serialized field or Resource.Load are you sure it is referencing the right prefab? If it part of a remote AddressableAssets there might be cache involved...