My computer's been bluescreening.....but if you really mean restarting then we have different issues. Do you have:
Figure A) https://images.drivereasy.com/wp-content/uploads/2018/08/cropped-Snap30-1-1.jpg
OR
Figure B) https://deploymentresearch.com/wp-content/uploads/2020/01/BSOD3.png