Some big investors are facing a moment of soul-searching about whether to abandon part of a long-profitable trade: a bet on a group of tech stocks known as “FANG.”

The stocks—Facebook Inc., Amazon.com Inc., Netflix Inc. and Google-parent Alphabet Inc.—have long risen in lockstep and helped power the long-running market rally.

But since Facebook’s...