It’s been a sobering stretch for Palantir Technologies Inc. shareholders, who have watched their once high-flying positions lose some 40% of their value since the stock hit a peak in November.