After you file

If you amended your return properly, your revised 1040 would show a much lower number on Line 30 Rebate Credit. and on Form 1040-X Line 15.

And you would have been asked to return the money right then and there.