I've never had to do it myself (so take it with a grain of salt) but from my understanding you should be able to do a factory reset from recovery - even without the PIN. (Simply put - GrapheneOS is supposed to protect your data and not leave you with a bricked phone):
Follow the instructions under "With your phone's buttons (advanced)":
https://support.google.com/pixelphone/answer/4596836?hl=en#zippy=%2Cwith-your-phones-buttons-advanced
You can then replace GrapheneOS with stock OS using the following instructions:
https://grapheneos.org/install/web#replacing-grapheneos-with-the-stock-os
_Nunca he tenido que hacerlo yo mismo (por lo que tomar con un grano de sal), pero desde mi entendimiento usted debería ser capaz de hacer un restablecimiento de fábrica de recuperación - incluso sin el PIN. (En pocas palabras - GrapheneOS se supone para proteger sus datos y no te dejan con un teléfono bricked):
Siga las instrucciones en "Con los botones del teléfono (avanzado)":
https://support.google.com/pixelphone/answer/4596836?hl=es#zippy=%2Cwith-your-phones-buttons-advanced
A continuación, puede reemplazar GrapheneOS con stock OS siguiendo las siguientes instrucciones:
https://grapheneos.org/install/web#replacing-grapheneos-with-the-stock-os_