crashes windows when rendering

Good day, I have a small problem, when rendering the program, Windows completely crashes and reboots the system,

Please provide your system specifications, such as windows version, amount of RAM and your graphics card.

Also, what are you trying to render?

Processor AMD Ryzen 7 5700X 8-Core Processor 3.40 GHz
RAM 32.0 GB
System type 64-bit operating system, x64 processor
Video card NVIDIA 3060 MEMORY 12 gigabytes

I get a similar thing happening.
I’ve also got 32GB RAM and 12GB VRAM.

I’ve read somewhere that if a computer completely shuts down when rendering, it’s usually a RAM issue. But I’ve kept an eye on available CPU and GPU RAM when it’s rendering, and there’s still plenty available before the computer crashes.

The only work around I found was to limit rendering to just 500 frames at a time and join them together in a video editor.