If we modulate from G Major to G Harmonic Minor, then Bb will be one of the notes in the G Harmonic Minor scale, that is if I'm not mistaken.
The other possibility is G Aeolian, third note in the scale is Bb, if I'm not also mistaken.
Please feel free to correct me if I'm totally wrong.