The first indication that something is wrong is when the DirSync Status tile in the Microsoft 365 admin center indicates there is a problem.
You will also receive a mail (to the alternate email and to your admin email) from Microsoft 365 that indicates your tenant has encountered directory synchronization errors
The below article might help you out in getting insights about this
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--