Anchor
ConstraintSpace
“A space constraint was violated”
The account's data length does not match the space constraint.
Common causes
- The account was created with a different size than the program now expects, often after changing the struct without migrating.
How to fix it
- Create a new account with the correct space, or add a
reallocmigration.