PNG should have no size limitation in this range. So it should be possible to use. (But I have no own experience, my panos are small.) But I found same reports that not all programs can handle such big PNG images.
Concerning TIFF, the development versions of Hugin and enblend/enfuse are capable to generate BigTIFF files and can so overcome the TIFF file size limitation.
(So you will need the versions from both repositories. In both cases the bigtiff switch have to added manually, either on the command line or in the user defined output sequence. It is not added automatically.)
Thomas