Maybe he can try running Ubuntu from a stick for a few hours, see if the same occurs.Have you tried Win 10 on this particular Notebook ?
I think this is actually a hardware fault but might be related to Win 11 features.
My previous laptop actually had a problem where it would just randomly crash doing certain things.
It ended up being the TPM chip., which Windows 11 relies on heavily.
Funny thing is that when work replaced my laptop (it was old and wasn't viable to replace the MB) I ended up buying it for next to nothing and it works perfectly on the older OS and Ubuntu.
Back to your device.
Given that this is a laptop and most likely there is a hardware problem, it's going to mean that they replace the motherboard.
Best get it to one of those HP service agents before the warranty ends
Just download and run vs code portable version.
That'll cut out the windows question.
