I had the same problem, too. Replacing the QHY library as suggested by Hy fixed it — at least when test running the camera without anything else connected. When using with Ekos, the same problem persist when I use at the same time the INDI driver for the filter wheel QHYCFW2. When I disconnect it the camera takes again images happily.