ASp.Net MVC : "Object reference not set to an instance of an object" error in auto gen code of user authentication

I am creating MVC project with user authentication using VS 2019 16.5.1. Auto generated supposed to be work without any change. But code breaks on view as I click on register link, first line using model property. There is no stack trace or inner exception.

System.NullReferenceException: 'Object reference not set to an instance of an object.'

But If I changed the return state from

return View();

to return View(new RegisterViewModel()); it works