The QR code has priority even if the user already took some pictures and we should proceed with the QR code flow and no alert view should appear with the error message about types of files.
Remove all the pages that have already been captured and keep the document generated after scanning the QR code