NavLocation is a Fstructure, not need to create w/ new.
just declare as:
FNavLocation NavLocation;
auto NavSystem = UNavigationSystemV1::GetNavigationSystem(GetWorld());
NavSystem->GetRandomPointInNavigableRadius(PawnLocation, 1000, NavLocation);
them you can used NavLocation.Location, not - >,use the dot. cause is a Fstructure.