The Flare-DC framing instructions includes a 4″ max measurement requirement to a side wall. The requirement is due to the fact that the side glass will radiate heat like a front glass of a fireplace.

See below chart for clarification. The 4″ Max is the X value

Flare-DC linear install draft
Framing guide example