hello,
I was having like you some image quality rendering using default camera, same thing with opencamera… I fixed it using a Magisk module made specially for my rooted device (see my experience How to fix Sony Xperia XA2 missing sim card). Those camera modules are in fact applying patches to the system. It worked for me. In the Magisk repository, there’s also some modules made for Samsung devices, maybe a way to find a solution.