I encountered the same issue and resolved it by relocating the Zod schema, which was originally defined using createInsertSchema on the actions page, to a separate file.