Goldman Sachs Group Inc.’s data was exposed earlier this year in a hack of accounting firm EY, according to a person familiar with the matter and Bloomberg reported.