Randomly booting instead of waking up

Randomly my laptop boots rather than wakes up when I open the lid. Sometimes, I can go a week without it happening and then sometimes it happens multiple times in a row. I have not been able to figure out any connection. I have noticed that if I do not reboot before closing the lid after the weird boot happens the next time I open the lid the laptop will not wake or boot. The power led blinks as if asleep. This issue was happening before I did a clean install of 26.04.

The laptop in question is a 7040 with ryzen 5, bios 3.18, OS- Ubuntu 26.04 LTS