This thought might be totally off the wall, but I wonder if the head is cracked and the crack only opens up at high engine temps. That might explain why it runs ok at lower temps. I don't know, just a guess.