I'll have to do a few more tests about this, but apparently if you defeat Berdly in one of his previous two encounters with a violent approach, during the Queen fight, EVEN if you loose the wire as usual, you will instead get the "bad ending", like you would normally get if you fight her instead.