Repository: stable-diffusion-webui
Issue: [Bug]: Full computer crash when generating larger images
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

When trying to create images bigger than 512x512 (i can go larger, but it's likely to crash), my pc fully crashes. sometimes instantaneously, sometimes during the compute. The debugging on my side is very complicated as linux mark logs as corrupted (pc instant crash, not even system panic i think). I did multiple stress test of my pc so it's unlikely a psu problem.

### Steps to reproduce the problem

1. txt2img
2. Resolution of 1024x1024 (almost certain to crash)

### What should have happened?

Maybe visual lags, but no crashes

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

[sysinfo-2024-03-11-14-16.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14559930/sysinfo-2024-03-11-14-16.json)


### Console logs

```Shell
glibc version is 2.39
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4
Python 3.10.13 (main, Mar  9 2024, 23:21:18) [GCC 13.2.1 20230801]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Launching Web UI with arguments: 
WARNING:xformers:WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.2.0+cu121 with CUDA 1201 (you have 2.3.0.dev20240309+rocm6.0)
    Python  3.10.13 (you have 3.10.13)
  Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  Memory-efficient attention, SwiGLU, sparse and more won't be available.
  Set XFORMERS_MORE_DETAILS=1 for more details
No module 'xformers'. Proceeding without it.
Loading weights [6d15e4ac22] from /nix/other/ai/stable-diffusion-webui/models/Stable-diffusion/furworldFurryYiffNSFW_hardfurry.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 15.0s (prepare environment: 5.7s, import torch: 3.4s, import gradio: 0.8s, setup paths: 1.6s, other imports: 0.6s, load scripts: 0.4s, initialize extra networks: 0.1s, create ui: 0.5s, gradio launch: 1.7s).
Creating model from config: /nix/other/ai/stable-diffusion-webui/configs/v1-inference.yaml
Applying attention optimization: Doggettx... done.
Model loaded in 6.4s (load weights from disk: 2.7s, create model: 0.3s, apply weights to model: 2.9s, calculate empty prompt: 0.4s).
MIOpen(HIP): Error [Prefetch] Ill-formed record: key not found: /home/moreo/.config/miopen//gfx1030_36.HIP.3_00_0_f34a90f76-dirty.ufdb.txt#396
MIOpen(HIP): Error [Prefetch] Ill-formed record: key not found: /home/moreo/.config/miopen//gfx1030_36.HIP.3_00_0_f34a90f76-dirty.ufdb.txt#396
Reusing loaded model furworldFurryYiffNSFW_hardfurry.safetensors [6d15e4ac22] to load Anything-V3.0.safetensors [10f0bd7ade]
Loading weights [10f0bd7ade] from /nix/other/ai/stable-diffusion-webui/models/Stable-diffusion/Anything-V3.0.safetensors
Applying attention optimization: Doggettx... done.
```


### Additional information

_No response_