Excess contributions can be carried over for 5 years. IRS Publication 526, Charitable Contributions, says the following (on page 19).
"Additional rules for carryovers. Special rules exist for computing carryovers if you:
. . .
• Claim the standard deduction in a carryover year,
. . .
Because of their complexity and the limited number of taxpayers to whom these additional rules apply, they aren't discussed in this publication. If you need to figure a carryover and you are in one of these situations, you may want to consult with a tax practitioner."