Every time I open the game the game window size keep getting smaller and smaller (windows)

I have a dual monitor setup on my system. When I open a game on my external monitor, close the game, and then open it again on my laptop, the game’s window size gets progressively smaller. I don’t have any configuration in my Unreal project that would reduce the window size, but this strange behavior keeps occurring.

To reproduce this issue, open the game on an external monitor in windowed mode, close it, and then reopen it. After doing this 2-3 times, you’ll notice the window size decreases each time.

This only occurs in project build. Not in editor.

I am using Unreal Engine 5.2.