The most reliable way to fix software-based IMEI corruption is to reinstall the factory operating system.

A professional-grade software that supports "Repair IMEI" and "Patch Certificate" functions for Qualcomm devices [19]. QPST / QFIL:

If no software method works—the eMMC is physically failing or the IMEI sector is dead—you need hardware intervention.