Are you use “Get Forward Vector” to get player’s forward then move?
I think it is because when you look up or down, you rotate the “Whole Player” instead of just camera. So your “Forward Vector” will be up when you are looking up, so player will not move ( player can’t move up if there is a gravity).
Could you provide your blueprint which control player movement ?