Fmriprep func to anatomical registration issue

Hello, I am analyzing two different subjects with fmriprep and I seem to have a small issue. The images for these two subjects are pretty similar and the headers are identical as well. However, fmriprep decides to overwrite qform in one of these subjects by copying the values from sform, while it does not do the same for the other subject. Registrations look bad for the subject whose qforms were adjusted and I thought this might be the reason since the analysis for the other one looks pretty good. What information does fmriprep look at to decide whether it will rewrite qform or not ? I am attaching a screenshot of the headers as well. Is there anything suspicious here that might have caused this ? I tried forcing BBR and turning it off completely, but it seems like the results are always bad for this subject.