Looks like Google wants you to enter someone's email explicitly to share something with if you don't want this policy to kick in. I suppose even in theory there isn't a way to know the intent behind whether something is meant to be shared with just a few people or publicly if "share with anyone that has the link" option is used.