I have a similar problem - I am outside of Canada for the part of the year (my husband is in the US), and the officer told me the same that as long as i can fly back for the oath, it is fine. Although I still have an apartment back there, but I do not think 2 week quarantine restriction for people arriving from abroad will be lifted any time soon, so I do not know how you (or I) can fly back right away when you have to sit in self isolation for 2 weeks once you leave the airport. Let us know if you end up calling IRCC regarding to taking the oath outside of Canada for people temporarily stranded out of country.