You should wait to file amendment until refunded.
This would be a helpful question to ask a user when they attempt to amend a return so they do not make a mistake or make the process more difficult.
"Did you/Have you received your refund? The IRS suggests waiting for any refund before amending your return as any refund error will be due to pay back immediately once we complete the amendment for filing."