It sounds more like a computer issue, lack of ram or some such. Does your machine meet the min requirements for Blender? Graphics drivers up to date. Not using amd or Mac.
Alternatively use an LTS version of Bender as it is maintained better.
Other than that render on image at a time by moving the time line on one frame at a time and rendering and saving each.