@FrogCityRiot reported a map that I could export on Safari and Chrome on my computer but not Firefox.
I found that there’s a browser-specific limit on the size of a single <canvas>
element. I can work around this limitation by scaling down the size of the exported image so that it fits within that maximum. But for now I’ll just leave this thread here as a record of the problem.