Reinstalling the stock ROM (original software) can resolve several critical issues:
This comprehensive guide covers everything you need to know: official stock ROM versions, where to download safe firmware, how to identify your device variant, and step-by-step instructions to flash the firmware using SP Flash Tool and QFIL.
You can copy, paste, and adjust the download links / instructions as needed.