I fixed the wing hinge and made a better mechanism. Due to singularities, it should produce very little torque on the servo both in the open and closed positions. No springs needed. Unfortunately, due to issues with Simulate, I can only show half of the mechanism actually assembled. It should be fairly obvious what the other half looks like though, just rotate the shown half 180 degrees.
Really all that's left with that is adjusting servo arm length (there's enough rotation there that the arm could be shorter and still get the full movement out of the wings, this would lower the torque needed out of the servo) and make the wing shape more like what is actually on the x-wing. These were just rough models I whipped up to show a basic idea.
Our designs are pretty similar, actually. The main difference is that I added a "step" in the middle of my hinge parts so the wings can lay flat in their closed position.
The actuator bit, which I havend drawn yet is pretty similar as well, though I chose to go with a slotted disk to move the pushrods, since that will eliminate most oof the torque throughout the whole range of movement as well as reducing the parts count.
I left the rear end open so there was room for an EDF inbetween the wings. In my mind I would use the X-wing engine intakes to funnel air into the center section just above and below the hinge braces.
I'm saying "in my mind" because I'm not that familiar with EDFs and unsure whether that would give me a big enough percentage of FSA for the unit to actually produce thrust.
Anyway, the EDF would blow out the back of the fuselage instad of the four little nozzles on the wing which should help a little. If not, you could still cut a cheater hole in the bottom of the fuselage, where the nose section is faired over to the main fuselage.