For whatever reason, it sounds like you ended up with a front sight that was meant to be mounted on a gas block rail- not a handguard rail. If you look through the options for front sights, you'll see specific units marked for the shorter rail mounted models. I'm willing to bet that if you could move that front sight to a standard flat top gas block- your groups would come back up to where they ought to be.