Rental property cost basis

Hello,

For 2019 tax year, the cost basis for a rental property was entered in ~$50k below actual costs and date of service is off by a few months.  Land value is correct, though have always taken depreciation off the incorrect cost basis.  Realized this error recently and filed for an extension.  How do I correct this moving forward in 2023 taxes?  Amend years 2020-2022 and take 2019 as a loss?  Appreciate any advice.