I manged to solve the problem. Though the exact reason is not yet entirely clear. I uninstalled the Corsair ICUE software which some reported could cause this problem, this did not help anything to the crashes. Then disabled the Nvidia Gamestram in nvidia experience settings (yes I have nvidia...
During the last 3 months I have been struggeling with random crashes after the computer goes to sleep.
I have a custom built desktop computer running Windows 11 with gtx 2080 TI. I have turned off all overclocking.
When checking windows event log I see the reason for the crash was "0xA0...