The pilot who died after crashing a helicopter on the roof of a New York City high-rise earlier this month was flying “erratically” and “did not know where he was” moments before the fatal accident, the National Transportation Safety Board said in a preliminary report released Tuesday.