How do i render animation?
What I would do is render all the individual frames then open up a new instance of blender, and then load all of the frames you just rendered into the VSE (Video Sequence Editor). Then just choose the file type of the video, and render the animation.
See this video if you need extra clarification: https://youtu.be/5RKeDJtMT-Q