Do your best to remove it if it is still apart from the mushrooms. Start over and add more garlic. The burnt garlic flavor really isn’t pleasant so watch out to avoid that.