Here are step by step to disable EAC from accessed from external of your organization, you still could access it from the internal of your organization. It doesn't effect the using of OWA: Turn off access to the Exchange admin center
You can also install an Exchange 2019,then using Exchange 2019 as the Internet facing server, the new function "Client Access Rules" is more easier to control the access of EAC.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.