Checkerrr I can guarantee that it works with Google stock os.
For how long did it run on Google's stock OS? Hours, days, weeks, months...?
It's possible that the flash storage was about to fail, and the installation process might have tipped it over the edge. If so, then flashing back to Google's OS might leave it still crashing, in which case there will definitely be a hardware problem. If flashing it back to Google's OS and using it for at least several days results in it being fine, perhaps something odd happened when it was flashed to GrapheneOS, in which case trying again might work.
The described symptoms really sound like a hardware failure. Flashing back to Google's OS is a good way to gather more data.