It confuses me, because you wrote in your question that you don’t have any class declaration in the header. And the posted header code only shows a forward declaraion of that class. So maybe you can update the question with the complete GravityMovementComponent.h header?.
Also check that you include the header in your GravityCharacter.h.