You may be getting a mismatch error because the display name or date of birth on your PAN card doesn’t match the details the income tax department has.
You will need to correct your name or date of birth in your Digilocker PAN or the PAN card image you’re uploading.