You always want to add the glaze to your ham towards the last 15-20 minutes of cooking time so that the glaze doesn’t burn.  You want the sugars to caramelize slightly, but any further and they will begin to burn.