Hi John
Had a very similar problem last year on my GTS, where car is fine to drive and revs good until you get In 4th gear when you rev also near to 5500 to 5800 then seems to loose power, then I would take my foot off the gas and within a few seconds the car is back and running good, till a certain revs then bogs down again. Only did it in 4th gear no other gear and at no other revs. Also running twin SU carbs and also fitted a uprated Facet fuel pump. This issue also drove me insane, after a million checks and adjustments I just drove the car like that and kept the revs down.
Long story short, engine is fitted with high compression pistons, massive valves and kent 286 cam with kent double valve springs. Car finally broke down on my way to Johannesburg one morning. After removing the head, had a very very slightly bent valve on no 3 cylinder and two other valves just just contacted the top of the piston on cylinder 4 and 1. So in my particular case then after fitting new valves and determining that the valve fitted height differs, I had to shim the rocker shaft pedastals to compensate. Also unlike the first time when I just bolted the engine together, I used clay to check valve to piston clearance to ensure no contact like I should have done on the first engine assembly before the car broke down.
I also read earlier in your thread that you had the engine built by a 3rd party, just ask them IF they had done the above test. Further you did have problems on initial startup with incorrectly adjusted valve clearances. Maybe something went wrong then already, just a thought.
Since you are planning on fitting another head gasket this should all just be double checked then.