Hyperparameter optimization of hp-greedy reduced basis for gravitational wave surrogates