Blow/flip one’s lid/top
Lose one’s head or temper, American informal, dates from early 20th century and derives from the build-up and then forceful release of steam pressure, a common metaphor during the Steam Age in the 19th century.