Question; whats the KBB for a regular 2017 Raptor with 172XXX miles? Maybe mid- to high-30's? There's zero chance of doing that swap and "getting your money's worth" out of it. I am in no way criticizing, because I've got about $50K invested in a 2011 G1 with 148xxx miles.
If you're looking at options for a pull-out engine package, I'd consider looking at Hennessey's shop in Texas.
https://www.hennesseyspecialvehicles.com/ Their customers are investing huge dollars with him when they do engine swaps and tend to bring in very well maintained vehicles. A friend of mine bought a (very low mileage) complete G2 Raptor engine, trans, and transfer case from them for $10K, and had it tweaked for his Class 7 race truck. They ended up with a package capable of racing all day at 600hp, that can be boosted to 700hp when necessary.