The problem with the 7700x isn't cooler size, any 360mm AIO will work well in that respect. The problem is finding one currently that actually works with AM5 mounting system.
With AM5, the height of the socket/cpu changed, so while AM4 coolers physically mount to AM5 just fine, they don't provide very good contact with the cpu, so you get very high temps. Aio vendors are working on brackets specifically for AM5, but as yet it's hit or miss as to whether they have one available. Afaik, NZXT and EK has one, just got to show proof of AM5 motherboard purchase and they'll send one free of charge. Not sure on anyone else.
Much depends on the actual mounting system. Some actually, supposedly, are AM4/AM5 compatible as is.