I would look at the valve springs. I had a 340 doing that one time above 4K rpm and it was a broken valve spring. Fortunately, the inner damper spring kept it from doing any damage but below that rpm it ran fine.