Issue with getting movement with mouse to work correctly

Hello, So I’m trying to implement a system that makes an object follow the mouse for movement now here is the problem whenever I move my object too fast it’s not on the mouse exactly and starts glitching out / jittering how can I fix this?

FCollisionQueryParams CollisionParams;
	CollisionParams.AddIgnoredActor(GetOwner());
	FHitResult  Hit;
	bool IsHit = UGameplayStatics::GetPlayerController(GetWorld(), 0)->GetHitResultUnderCursor(ECC_Visibility, false, Hit);
	if (IsHit)
	{
		Hit.Location.X = 0;
		SetActorLocation(Hit.Location);
	}

This is my code which is placed in tick

And this is a demonstration of the problem