On the closed end gable adding a "girt," if you will, will take care of the problem. Think about a steel beam (I beam or wide flange) that is loaded vertically were it is the strongest:
If you turn the beam so the web is horizontal and place it at the hinge, then you can transfer the horizontal reaction of the hinge. The "support" is at the end walls where it can be transferred by your shearwalls. Doesn't "have" to be steel, maybe some 2x12s? Essentially you are just providing another support to studs at the hinge:
The other option I mentioned I thought about on a project we had. It was an architectural home with low-slope roof and lots of glass and a shade pocket parallel to the edge of the wall. We used welded channels at 4' on center to support the glass storefront laterally (cantilevered outriggers.) The trusses were top-chord bearing wood, and the other end of the channel framed back and were supported by framing between the top chords, similar to a header. Depending on horizontal wind direction, there was a upward or downward reaction transferred back there. We provided this force for the roof truss engineer to take into his design. A handful of tedious little connection details and wood lag screws checks, but worked well:
May not work exactly the same in your case, because your trusses are steep sloped and geometry is different, but that's the concept.
I hope this helps.