It's hard to say how it will affect the hatch, if at all. What you are measuring is air temperature. That changes a lot faster than the interior temperature of the eggs. I don't know how much that interior temperature actually went up. Probably not as much as you think, even in five hours.
How long they have been in there affects it too. In the very early stages of incubation high temperatures can affect how the body parts form. "Can" means it might possibly affect them, not that it absolutely will. Later in incubation, high temperature has less of an effect. If the body parts form wrong, the chicks normally don't hatch so you are not likely to hatch out freaks. The eggs will just quit developing.
That spike in temperature is obviously not a good thing, but I would not give up hope yet. You'd be surprised how tough those eggs can be. You might want to candle in a few days to see that they are still developing. But don't panic or do anything rash.