How does the extremely high surface temperature of O-class stars affect their expected lifespan?

Answer

They have very short lifespans, often lasting only a few million years.

Due to their extreme mass and high temperature causing an astonishing rate of nuclear fuel consumption, O-type stars have very short lifespans compared to cooler stars like the Sun.

How does the extremely high surface temperature of O-class stars affect their expected lifespan?
physicsastronomytemperaturestarclass