Short answer: A number that must be an unsigned 64-bit integer (an amount, asset id, round or fee) was negative or larger than 18,446,744,073,709,551,615.
The exact message
Value -1 is not a uint64
Source: Error, captured locally with algosdk 3.9.0 on 2026-12-03.
Why it happens
Three captures gave this message: amount -1, amount 2^64 (18446744073709551616) and asset id -5. The message prints the offending value.
How to fix it
Check the sign: a negative result usually comes from subtracting a fee from a smaller balance.
Use BigInt for large values; amounts are in microAlgos (1 ALGO = 1,000,000) or an asset's base units.