If using frozen shrimp ensure that they are defrosted and dried before adding them to hot oil. Cook the shrimp in the olive oil and add the butter later to ensure that the butter doesn't burn. Chop the garlic finely rather than grating or finely mincing so that it doesn’t burn.