Why can't I delegate SOL when my stake account clearly has funds?
When troubleshooting, first calculate how much SOL in the account is available for delegation. The total balance in a stake account includes the minimum balance reserved for account storage. Solana's getStakeMinimumDelegation returns the cluster's current minimum delegation amount, in lamports—the smallest unit of SOL.
Suppose an account's total balance is exactly at the delegation threshold. After deducting the balance the account must retain for storage, the amount actually available for delegation may fall below the threshold. If the interface compares only the total balance, users may see a value that appears to meet the requirement, but the submission will still fail.
During preflight checks, you can query the minimum delegation amount and the storage balance required for a stake account on the same cluster. First, calculate the amount available for delegation using a consistent lamports unit, then compare it with the minimum delegation amount. The transaction fee is paid separately by the payer, so you cannot use the stake account’s total balance to determine whether the payer can afford it. If all these amounts meet the requirements, the next step is to check the specific error returned by the transaction.
Original sources https://solana.com/developers/docs/rpc/http/getstakeminimumdelegation
https://solana.com/developers/docs/rpc/http/getminimumbalanceforrentexemption
https://solana.com/developers/docs/references/solana-cli