In WhatsApp web, sync error occurs due to various reasons. One of the common reasons is that, your internet connection is breaking up. So make sure you have a strong internet connection. Additionally, you can also try relinking your devices, update your WhatsApp app, clear WhatsApp cache on your phone and so on.