Why might Ironsides and the USS constitution be hostile with me?

As mentioned in the notes on the quest's wikia page, there are a few ways you can inadvertently fail this quest:

  1. If your companion is wearing power armor that has Tesla Coils, it may trigger hostility in the robots, causing you to fail the mission.
  2. If Preston Garvey accompanies the Sole Survivor the robots will become hostile. To avoid failing the quest, simply walk around them and they will only attack Preston.

Do either of these sound like they may have been the cause?