If you want to prevent your Mac from sleeping automatically for MacOS Ventura, please refer to the following steps:
1. Click Apple icon on the screen and click "System Settings"
2. Click "Displays"
3. Click "Advanced"
4. Enable the option "Prevent automatic sleeping on power adapter when the
display is off" and click "Done"
Then you can prevent your Mac from sleeping automatically for MacOS Ventura
1. Click Apple icon on the screen and click "System Settings"
2. Click "Displays"
3. Click "Advanced"
4. Enable the option "Prevent automatic sleeping on power adapter when the
display is off" and click "Done"
Then you can prevent your Mac from sleeping automatically for MacOS Ventura