It sounds like you are on the right track for your build, so I don't have a solid answer, but here area few things that have helped me tighten up gas guns like yours:
1. True up the face of the upper receiver to insure the barrel extension mates up square. This will require a part and some lapping compound, but it isn't a complex procedure.
2. When assembling the rifle, I have used blue loc-tite between outside of the barrel extension and inside of the upper receiver. Use VERY little, and don't get any anywhere close to the threads, or the nut that tightens up the barrel onto the upper.
3. Properly torque the barrel onto the receiver. Use plenty of anti-seize grease, then tighten almost all the way, back off the nut, tighten almost all the way, loosen the nut, do this 3x before final torque. If you need to shim the barrel do so, but a loose barrel nut is an invitation to frustration. An overly tight one can ruin your receiver.
4. Insure that your gas tube passes easily through the opening in the upper and is square to the receiver so that it enters smoothly and evenly into gas key on the bolt carrier without bearing unevenly on either side.
5. use a little blue loc-tite around the bottom of the gas block. Make sure you don't get any between about 10 and 2 o'clock so there isn't any loc-tite anywhere close to the gas port. Obviously, plugging the gas port with loc-tite would be bad.
6. If you have excessive play between the upper and lower receiver, you can get a shoulder bolt at most hardware stores that you can use to replace the front take down pin. Tightening this shoulder bolt will eliminate all play between the upper and lower.
7. Experiment with various positions of the gun in the rest. I presume you have a free floated barrel and tube forend. Try placing the rear bag under the toe of the butt stock, as opposed to the pistol grip. If you use a bipod, load the bipod with forward pressure.
8. The gas guns have different vibrations that effect accuracy than bolt guns. This is caused by the weight of the hammer, and the reciprocation of the bolt/bolt carrier mass. It would take too long to type all the explanation of the effects of that here, but it matters, so understanding it can help you.
9. Try free recoiling vs tight holding when firing the rifle.
10. Insure that your optics are not wonky, and are mounted right, and that rings and base are properly mounted and torqued. I presume your scope isn't busted. If you have one scope ring on the receiver, and another scope ring mounted on the tube forend, you are almost guaranteed to have problems.
11. Ask someone to help you with coaching on how to shoot gas guns because the techniques for best results are different than bolt guns, as the gas guns are less forgiving that bolt guns.
12. Try with, and without a muzzle device. A muzzle device with threads slightly off center will mess up everything.
13. Obviously try different types of ammo, and different weights. Usually trying Federal, Remington, Hornady, Black Hills match bullet loads will find one that works well.
14. Make sure that your gas key is properly staked and tight. Insure that your gas rings are offset.
If I think of more, I will edit this post...I hope something here helps.