Turning off external sharing means that existing external users won't be able to access the site. If you turn it on again ...

Turning off external sharing means that existing external users won't be able to access the site. If you turn it on again later, you might have to re-invite those users.

If you want to temporarily limit external user access, consider turning off external sharing from the Sharing Settings page in your tenant admin center.