After you file

If you file an amended return for the stimulus, but stated "someone can claim me", IRS will deny the payment.

That's all there is to it. There is no penalty.

@Charlotte7598