Thermal relaxation of strain and twist in ferroelectric hexagonal boron nitride moiré interfaces