'Visual Studio 2022 "Arithmetic operation resulted in an overflow" Error on MVC 4 Project

I'm developing my old MVC 4 project on Visual Studio 2022. But when I try to "add view" or "add area", "Arithmetic operation resulted in an overflow" error occurs. It only happens in VS2022. VS2019 is OK.

How can I solve this problem?

Here is my issue video: https://www.youtube.com/watch?v=yTY4xTyJp1w



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source