Can I amend my tax return to disclaim a primary home sale partial exclusion?

My husband and I bought a second home in 2020 so that I could take a job in a different state. We sold the home in 2022 due to a job change back to the original state, and we were able to exclude the very small capital gains because I had lived there for over 2 years. We are now considering selling our current house, which we have owned for 10 years, since my husband now has a new job over 50 miles away, and I can work remotely from there. However, it has been only 9 months since we sold the second home. If we want to sell our current home and get the full exclusion, since it has appreciated a lot in 10 years, can we amend our 2022 return to no longer have a partial exclusion for the second home sale?