I seemed to have found the answer. I was just using the windows 11 default driver for my AMD Radeon RX6600. After installing the driver from AMD the problem is now solved. The only niggling thing is that it was working ok with the Windows default driver previously.