Palantir Technologies Inc.’s stock fell 7.5% on Friday following a report that a battlefield communications system it worked on with defense tech firm Anduril Industries Inc. was seriously flawed — a claim both companies said was out of date and inaccurate.