Alright, I managed to fix my crashing. I have been playing for the last 6-7 hours and haven't crashed once so far. Will edit this comment if I crash again. All I did was follow some steps written on this article. I am playing the game via my xbox game pass so I just used the repair option. No idea about Steam though. And I also had few windows 10 updates. I did that and restarted my pc. The game hasn't crashed since then.