Which exact version is your visual studio ?
There seem other people getting the same issue from the very latest visual studio Failure to create a new project: "cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'" - #17 by StBlueFire