pc rarely crashes

Sometimes my pc just „“restarts“ it gets blackscreen and then just takes me back to windows login screen after restarting itsself

i assume its reason is the gpu but im not sure

im using 7900xtx and set ratios in amd adrenalin to: min freq: 500 max freq: 2500 Volt: 1130

vram: 2714 max power +15%

it runs normal and good but sometimes the pc just blackscreens. sometimes also grey screen but didnt see that for a while now

7800x3d running on neg 30 msi mag b650 1000w psu