You could make it butt against the gas block, but then you're relying on the o-ring staying in place before it seats. Using an interior groove would eliminate that.
You have yet to divulge caliber, ammunition velocity, and baffle type so estimating necessary dimensions won't be easy.
While the T8 Scout Reflex suppressor only extended 4" passed the muzzle, it had a large OD and they were allowed to test, redesign, repeat. The baffles were also stamped and didn't take up much room or add significant weight. Reflex designs are cool, but do not make up for baffles in front of the muzzle. Were you planning to add copper mesh or any sort of dampening material to the reflex portion?
If you use a small brake, like the minimalist, and squeeze as many baffles in front of the muzzle, you may be able to come out with a decent design. I'd think about adding another inch and giving yourself the ability to add 2 more baffles.
Definitely doable. You definitely won't be overgassed