ChatGPT has confirmed what I found out last year, QR decomposition can become unstable due to rounding errors or ill conditioned matrices. At least I now know that it wasn't my code at fault. Just my technical knowledge. I was trying to use QR as part of a DPD system for DATV.