I was originally pondering a modification on
this strategy, but with
enlarge/reduce instead of
phantasmal terrain. If you burn through it's Legendary Resistances, then
true polymorph it as suggested. If it lets itself get
reduced, then
plane shift to the Plane of Water and
gate to summon it. Unfortunately
gate and
enlarge/reduce are both Concentration, so it doesn't work.