Both “screamed in fear” and “screamed with fear” are grammatically correct, however they do have a subtle difference in their nuance. While “screamed in fear” emphasizes the *internal emotional state* that caused the scream and suggests that fear is the reason/cause of the scream, “screamed with fear” suggests that the person/people screamed and that fear was accompanying the scream. Screamed in fear is used much more frequently both in literature and in everyday language, however, “screamed with fear” can, for example, be used for stylistic variation in writing.