I built a HTML file with a million headings, and it is a 60MB file, no browser really loads.
I don’t recommend opening it, but here it is.
http://moritzglantz.de/experiments/heading-level-million/
(Thanks to Paweł Masarczyk (npub19gl…f8ns) for the idea)