Trying to make indefinite camera shake stop looping

I made a cam shake for my sprint so that if it is sprinting it’ll play indefinitely until the movement is lessened. I have tried to figure this out but I have no idea, I made my camera shake a tsubclassof and I need a pointer, how should I get around this, thank you in advanced!

if (GetCharacterMovement()->MaxWalkSpeed == (OriginalWalkSpeed * SprintMult)) {
			GetWorld()->GetFirstPlayerController()->PlayerCameraManager->PlayCameraShake(CamShake, 1.f);
		} else {
			GetWorld()->GetFirstPlayerController()->PlayerCameraManager->StopCameraShake(CamShake, true);
		}

The solution is to use PlayerCameraManager->StopAllInstancesOfCameraShake(CamShake, false); instead of StopCameraShake(CamShake, true); because that one is for pointers and the stop all instances of is for tsubclassof which is what I’m using