when it happened on my pc two decades ago it was faulty VRAM. It’s because when it’s loading doesn’t use GPU. Need to replace the video card that means send the laptop to the e-waste.
edit: it’s m1 mac so there’s no vram, right? So it’s faulty GPU which means faulty SOC = completely wasted?