The partition isn't corrupted, it [recovery] just doesn't handle malformed script output particularly well. And doesn't provide user-friendly messages.
You could try reflashing with SP Flash, but there runs the risk of corrupting NVRAM.
Personally, I think next steps would be to try and flash the v23 images via the bootloader with fastboot. I can send a script to do that if you want. It's safer than using SP Flash.
In the meantime, definitely report the bug on the `planet-devices` tracker (GitHub), and let Planet know. It's likely the script is failing, but it's hard to tell with the screenshots.
Thanks.