To fix the game crashing and restarting:
Check system requirements and ensure your PC meets them.
Update graphics drivers and game updates.
Verify game files through Steam or Epic Games.
Disable background processes and check for overheating.
Check the error message in the warning box for clues.
Run the game as Administrator.
Reinstall the game if nothing works.