Pat the tenderloin dry and season all over with the salt and pepper. Heat the oil in a 12-inch skillet over medium-high heat until shimmering. Sear the beef on all sides, including the ends, about 2 minutes per side, until deeply browned (8 to 10 minutes total). Transfer to a plate, cool for 10 minutes, remove the twine, and brush the mustard over every surface. Refrigerate while you make the duxelles.
Pulse the mushrooms, shallot, and garlic in a food processor in two batches until very finely chopped, like coarse crumbs. Melt the butter in the same skillet over medium heat. Add the mushroom mixture, thyme, and salt and cook, stirring often, for 12 to 15 minutes, until all the liquid has evaporated and the mixture is dry and clumps together. Spread on a plate and cool for 15 minutes.
Lay a 2-foot sheet of plastic wrap on the counter. Shingle the prosciutto, slightly overlapping, into a rectangle about 10 by 12 inches. Spread the cooled duxelles evenly over the prosciutto. Set the beef along one long edge and use the plastic wrap to roll it into a snug log, twisting the ends tight. Refrigerate for 20 minutes. Meanwhile, heat the oven to 425°F with a rack in the center and line a rimmed half sheet pan with parchment paper.
On a lightly floured surface, roll the puff pastry into a rectangle about 12 by 16 inches (if using two sheets, overlap them by 1 inch and press the seam before rolling). Unwrap the beef log and set it in the center. Brush the pastry edges with egg wash, fold the long sides over the beef, and trim so they overlap by about 1 inch. Fold up the ends and press to seal.
Place the Wellington seam-side down on the lined pan. Brush with egg wash, lightly score a crosshatch with the back of a knife, cut two small steam vents on top, and sprinkle with flaky salt. Chill for 15 minutes.
Brush again with egg wash and bake for 40 to 50 minutes, until the pastry is deep golden brown and an instant-read thermometer inserted into the center of the beef reads 145°F (USDA safe minimum for beef roasts). Start checking at 35 minutes, and tent loosely with foil if the pastry browns too quickly.
Rest for 10 minutes (USDA minimum rest for beef roasts is 3 minutes), then slice into 1¼-inch slices with a sharp knife using a gentle sawing motion.