Hi there, I had the same problem (UE 4.19) and found in documentation that the actual necessary header for autocomplete is “GameFramework/Actor.h”, so no need for huge “Engine.h” in your code.
See here: GetOwner | Unreal Engine 5.4 Documentation | Epic Developer Community
Hopefully this helps someone!