What camera app do you use? Does it make a difference?
I compared camera apps on FP Open OS (not on LineageOS so far), and pictures made with OpenCamera were a lot better than those made with the default camera app.
I don’t have this problem with my FP2, it works well while charging connected to the PC or a charger. But it seems to depend on the charger and USB cable.