paint on the inside of heads flaking

About the only kinda paint that'll hold up to that is red glyptol. It's the same stuff used to paint electrical windings with. As mentioned, it will cause major problems for you. It would be worth tearing down the top half of the engine to me.