If ApplyGameplayEffectToSelf is performed on the Hit event, access will be disabled

I wanted to create a Hit event with a simple Projectile, Get Ability System Component for the Hit actor, and give it a GameplayEffect with ApplyGameplayEffectToSelf, but I get the following I get the following error.

Blueprint Runtime Error: “No access to try to read property CallFunc_GetAbilitySystemComponent_ReturnValue”. Node: ApplyGameplayEffectToSelf Graph: EventGraph Function: Execute Ubergraph BP Sample Projectile Blueprint: BP_SampleProjectile

I tried changing the Hit event to Begin Overlap under the same conditions and it was handled as normal.
Can someone please enlighten me on this?

EngineVersion 5.0.3