The size of man-made nuclear devices pales into insignificance next to natural events.
A one-megaton TNT explosion is equivalent to 4.2×10¹⁵ joules or 4.2 petajoules (PJ). This is the typical yield of the largest strategic H bombs. The world's total arsenal of nuclear weapons is estimated to be 12,300 warheads.
The largest nuclear weapon ever detonated was the Soviet Union's Tsar Bomba at 50 megatons equivalent or 2.1×10¹⁷ J.
For comparison, the energy needed to accelerate one ton of mass to one tenth of light speed (0.1c or 30,000 km/s) is 4.5×10¹⁷ J or 108 megatons equivalent.
The estimated energy released by the eruption of the Indonesian volcano, Krakatoa, in 1883 was 8.4x10¹⁷ J or 200 megatons equivalent.
The energy released by a carbonaceous chondrite meteor 1 km in diameter striking the Earth's surface at 20 km/s is 2.33×10²⁰ J or 55,476 megatons equivalent. It's estimated that such an impact occurs every half a million years.
The energy released in the formation of the Chicxulub Crater on the Yucatán Peninsula, believed to have been the primary cause of the K-Pg extinction event 66 million years ago, is estimated to have been 3×10²³ J or 71.4 million megatons equivalent.
The total energy that the Carrington Event deposited into the Earth's magnetosphere in 1859 over a couple of days was 4×10²⁵ J or 9.5 billion megatons equivalent.
The total radiative energy output of the Sun is 3.83 ×10²⁶ J/s or 91 billion megatons equivalent
per second.
Those examples are mere peanuts compared to cosmic events such as supernovae and black hole collisions.
en.wikipedia.org