No, Raid Formation does not cause the ship to use its Sustain Damage ability, it only causes it to become damaged, so there is no window for Direct Hit to be used.
Designer ruling (Dane Beltrami): No, Raid Formation does not cause the ship to use its Sustain Damage ability, it only causes it to become damaged, so there is no window for Direct Hit to be used. Official LRR, FAQ, or later expansion text wins if it supersedes this ruling.
Designer ruling (Dane Beltrami), not Living Rules Reference text. If a later official LRR, FAQ, Codex, or expansion clarification supersedes this ruling, the official text wins. Collected from the Twilight Imperium Wiki FAQ compilation of unbolded official answers by Dane Beltrami that are not yet in the LRR (archived 4 March 2026); that page does not link each entry to an original post.