The typical reason is over processing in the food processor or blender, when basil and olive oil are blended too much, they can release polyphenols which are bitter. So have a care and only process until blended. To remedy if not using nuts, but are okay with nuts, add a handful of nuts, or add a little extra cheese if making the no nuts recipe.