Do you using a hybrid organization?
In a hybrid organization, if you want to uninstall Exchange serer, you also need to uninstall AAD connect. If you want to keep AD sync, you need to remain at least one Exchange on-premises server.
For more detailed information, you can have a look about this article(I think it is same to SBS server): How and when to decommission your on-premises Exchange servers in a hybrid deployment
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.