You don’t have to file an amended return or contact the IRS. The IRS will contact you by mail and ask that you send the schedule. The IRS letter will have instructions on where to mail it.
On a sale of a principal residence, you may avoid tax under the rules.