Instruction
ExternalAccountDataModified
“instruction modified data of an account it does not own”
A program wrote to the data of an account owned by another program.
Common causes
- Mutating a token account or another program's account directly instead of via CPI.
How to fix it
- Modify foreign accounts only through CPIs to their owner program.