Capital Gains

Hello, I sold a home in 2021 and bought another, however I sold that new one in March 2022 after only having lived in it for 10 months. What are my options to avoid paying taxes on my capital gains of that home? Since I married military and we now live in military housing its unlikely I will be buying another primary residence.