I wonder how big an accelerator would need to be to produce such energies?
Proton collisions are messy, and not the best way to get photons at certain energies. There is a new up to 1 TeV electron collider planned in Japan [1].
Note however that these 18 TeV are only the highest energy Photon from a GRB. LHAASO observed gamma rays up to 1.4 PeV from other sources (mostly galactic super nova remnants) [2].
- [1] https://en.m.wikipedia.org/wiki/International_Linear_Collide... - [2] https://www.nature.com/articles/s41586-021-03498-z