If your garlic is bitter, it is likely because it is burnt or cooked at too high of a temperature. While it may not taste perfect, it is still safe to eat.