Preserving deductibility will be tricky unless there is a simultaneous settlement where you can just substitute security for the 20% loan.
If you sell the PPOR first then the lender will require the loan to be paid out.
One possible option is to try to keep a sum of money from the sale...