I have to ask this because it has caused many a lot of lost hours chasing a similar idle issue, but did you install the correct intake manifold gaskets? If 266/304 intake gaskets are installed in a 345/392, it will create a huge vacuum leak and act the same. A quick check at the top of the gaskets is a tab showing which engine they fit. Double check you got the correct ones in there just to be sure.