Leaving the skin of the garlic on the cloves acts as a protective barrier - this will prevent the burning. If you notice it’s cooking too quickly still, you can add the garlic into some foil to protect it further.