The ebuilds have RESTRICT="binchecks mirror strip".
Portage therefore skipped stripping, which lead to modules in 5.18.5 taking up ~4 Gbs.
This in turn lead to an initramfs that exceeded the 512Mbs we have as /boot.
How did this ever work? It looks like stripping was restricted from the start.